Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
[circle] only attempt integration tests if we have a gce key
Browse files Browse the repository at this point in the history
This will make fork PRs run successfully (but not run the integration
tests).
  • Loading branch information
paulbellamy committed Jun 24, 2015
1 parent 003fbf0 commit 1e78817
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,35 @@ dependencies:
- sudo apt-get install bc
- pip install requests
- curl https://sdk.cloud.google.com | bash
- bin/setup-circleci-secrets "$SECRET_PASSWORD"
- if [[ -n "$SECRET_PASSWORD" ]]; then
bin/setup-circleci-secrets "$SECRET_PASSWORD" ;
echo "Secrets Installed!" ;
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:
parallel: true
- cd $SRCDIR/test; . ./gce.sh hosts; ./setup.sh:
parallel: true
- cd $SRCDIR/test; . ./gce.sh hosts; ./run_all.sh:
- ? >
if [[ -e "/tmp/gce_private_key.json" ]]; then
cd $SRCDIR/integration;
./gce.sh setup;
. ./gce.sh hosts;
./setup.sh;
./run_all.sh
else
echo "No GCE Credentials. Skipping integration tests..."
fi
:
parallel: true
timeout: 300
post:
- cd $SRCDIR/test; ./gce.sh destroy:
- ? >
if [[ -e "/tmp/gce_private_key.json" ]]; then
cd $SRCDIR/integration;
./gce.sh destroy;
fi
:
parallel: true

0 comments on commit 1e78817

Please sign in to comment.