Files
fission-src/hack/runtests.sh
T
Soam Vasani 6f8a2e4789 Don't set KUBECONFIG when there is no reachable cluster
Travis doesn't pass secret env vars to tests run on forks, so we need
a way to skip the tests when there are no credentials passed in.

This change unsets KUBECONFIG when there's no reachable cluster. The
Go tests already check for KUBECONFIG and skip when it's not defined.
2017-08-11 15:02:14 -07:00

13 lines
350 B
Bash
Executable File

#!/bin/bash
# The poolmgr unit test only works with NodePort-type services for
# now. So disable it for our travis ci tests.
if [ ! -f ${KUBECONFIG} ]
then
unset KUBECONFIG
fi
go test -v -i $(go list ./... | grep -v '/vendor/' | grep -v 'examples/go')
go test -v $(go list ./... | grep -v '/vendor/' | grep -v 'examples/go' | grep -v poolmgr)