Spin up test VMs on GCE during a circle ci run and use them to run the integration tests.
This commit is contained in:
1 parent
64f7e04e14
commit
e5ae053b4f
3 files changed
+252
No files matched your search
+31
@@ -0,0 +1,31 @@
|
||||
general:
|
||||
|
||||
|
||||
machine:
|
||||
services:
|
||||
- docker
|
||||
environment:
|
||||
GOPATH: /home/ubuntu:$GOPATH
|
||||
SRCDIR: /home/ubuntu/src/github.com/weaveworks/weave
|
||||
PATH: $PATH:$HOME/.local/bin:$HOME/google-cloud-sdk/bin/
|
||||
CLOUDSDK_CORE_DISABLE_PROMPTS: 1
|
||||
|
||||
dependencies:
|
||||
post:
|
||||
- docker build -t weaveworks/weave-build build
|
||||
- pip install --user --upgrade gcloud gsutil
|
||||
- curl https://sdk.cloud.google.com | bash
|
||||
- bin/setup-circleci-secrets "$SECRET_PASSWORD"
|
||||
|
||||
test:
|
||||
pre:
|
||||
- ls -al /var/run/docker.sock
|
||||
- mkdir -p $(dirname $SRCDIR)
|
||||
- cp -r $(pwd)/ $SRCDIR
|
||||
override:
|
||||
- docker run -v /var/run/docker.sock:/run/docker.sock -v /home/ubuntu:/home/go weaveworks/weave-build
|
||||
- cd $SRCDIR/test; ./gce.sh setup
|
||||
- cd $SRCDIR/test; . ./gce.sh hosts; ./setup.sh
|
||||
- cd $SRCDIR/test; . ./gce.sh hosts; ./run_all.sh
|
||||
post:
|
||||
- cd $SRCDIR/test; ./gce.sh destroy
|
||||
Reference in new issue
Block a user