Kubernetes access for Travis CI tests (#272)

Sets up Travis CI tests to use a Kubernetes cluster on GKE. All tests have access to $KUBECONFIG which points at a kubeconfig file with credentials to a cluster.

I had to skip the poolmgr unit test because it currently assumes NodePort services; that will be fixed in another change.

Also, because some of the tests don't work properly in parallel, I've ended up reducing the concurrency to 1. If this becomes a problem we'll have to fix the tests, but for now I don't mind just waiting a few minutes longer.
This commit is contained in:
Soam Vasani
2017-08-08 17:01:34 -07:00
committed by GitHub
parent e238776bf7
commit 7d83f5713a
3 changed files with 77 additions and 12 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
# The poolmgr unit test only works with NodePort-type services for
# now. So disable it for our travis ci tests.
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)