Merge pull request #338 from weaveworks/334-fix-integration-tests

Fixing the build
This commit is contained in:
Paul Bellamy
2015-07-31 10:53:59 +01:00
4 changed files with 11 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ machine:
PATH: $PATH:$HOME/.local/bin
CLOUDSDK_CORE_DISABLE_PROMPTS: 1
SCOPE_UI_BUILD: $HOME/docker/scope_ui_build.tar
WEAVE_REPO: github.com/weaveworks/weave
WEAVE_ROOT: "${GOPATH%%:*}/src/github.com/weaveworks/weave"
dependencies:
cache_directories:
@@ -22,6 +24,10 @@ dependencies:
- curl https://sdk.cloud.google.com | bash
- test -z "$SECRET_PASSWORD" || bin/setup-circleci-secrets "$SECRET_PASSWORD"
post:
- git clone --depth 1 -b gce-parameterize https://$WEAVE_REPO.git "$WEAVE_ROOT"
- go get $WEAVE_REPO/...
- cd $WEAVE_ROOT; make testing/runner/runner
- sudo apt-get install jq
- go version
- go clean -i net
- go install -tags netgo std

View File

@@ -14,6 +14,9 @@ if [ ! -d "$WEAVE_ROOT" ] ; then
git clone --depth 1 -b master https://$WEAVE_REPO.git "$WEAVE_ROOT"
go get $WEAVE_REPO/...
fi
if [ ! -x "$WEAVE_ROOT/testing/runner/runner" ] ; then
(cd "$WEAVE_ROOT" && make testing/runner/runner)
fi
. "$WEAVE_ROOT/test/config.sh"

View File

@@ -5,4 +5,6 @@ set -e
. ./config.sh
export PROJECT=scope-integration-tests
export TEMPLATE_NAME="test-template-2"
export NUM_HOSTS=2
. "$WEAVE_ROOT/test/gce.sh" "$@"