Skip to content

Commit

Permalink
Only run integration tests if we're testing the weaveworks repo; buil…
Browse files Browse the repository at this point in the history
…d the build image if not in cache.
  • Loading branch information
Tom Wilkie committed May 21, 2015
1 parent 449bf45 commit 1cfca7a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions circle.yml
Expand Up @@ -21,26 +21,25 @@ dependencies:
- if [[ -e "$WEAVE_BUILD" ]]; then
docker load -i $WEAVE_BUILD;
else
docker pull weaveworks/weave-build;
mkdir -p $(dirname "$WEAVE_BUILD");
docker build -t weaveworks/weave-build build
docker save weaveworks/weave-build >$WEAVE_BUILD;
fi
post:
- curl https://sdk.cloud.google.com | bash
- bin/setup-circleci-secrets "$SECRET_PASSWORD"
- if [ "$CIRCLE_PROJECT_USERNAME" == "weaveworks" ]; then curl https://sdk.cloud.google.com | bash; fi
- if [ "$CIRCLE_PROJECT_USERNAME" == "weaveworks" ]; then bin/setup-circleci-secrets "$SECRET_PASSWORD"; fi
- mkdir -p $(dirname $SRCDIR)
- cp -r $(pwd)/ $SRCDIR

test:
override:
- docker run -v /var/run/docker.sock:/run/docker.sock -v /home/ubuntu:/home/go weaveworks/weave-build:
parallel: true
- cd $SRCDIR/test; ./gce.sh setup:
- if [ "$CIRCLE_PROJECT_USERNAME" == "weaveworks" ]; then cd $SRCDIR/test; ./gce.sh setup; fi:
parallel: true
- cd $SRCDIR/test; . ./gce.sh hosts; ./setup.sh:
- if [ "$CIRCLE_PROJECT_USERNAME" == "weaveworks" ]; then cd $SRCDIR/test; . ./gce.sh hosts; ./setup.sh; fi:
parallel: true
- cd $SRCDIR/test; . ./gce.sh hosts; ./run_all.sh:
- if [ "$CIRCLE_PROJECT_USERNAME" == "weaveworks" ]; then cd $SRCDIR/test; . ./gce.sh hosts; ./run_all.sh; fi:
parallel: true
post:
- cd $SRCDIR/test; ./gce.sh destroy:
- if [ "$CIRCLE_PROJECT_USERNAME" == "weaveworks" ]; then cd $SRCDIR/test; ./gce.sh destroy; fi:
parallel: true

0 comments on commit 1cfca7a

Please sign in to comment.