mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-06 01:08:03 +00:00
Set up dependencies for integration test job
* Build 'runner' program in build job and save to workspace; * Save build outputs - externalui, staticui, codecgen output; * Install required tools in test VM; * Call 'make deps' in integration-tests-job and touch 'runner' from workspace so it doesn't rebuild.
This commit is contained in:
@@ -110,11 +110,17 @@ jobs:
|
||||
at: .
|
||||
- run: make BUILD_IN_CONTAINER=false SUDO= static all
|
||||
- run: cd extras; make BUILD_IN_CONTAINER=false
|
||||
- run: make -C tools/runner
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
- scope.tar
|
||||
- cloud-agent.tar
|
||||
- tools/runner/runner
|
||||
- prog/externalui/
|
||||
- prog/staticui/
|
||||
- report/report.codecgen.go
|
||||
- render/detailed/detailed.codecgen.go
|
||||
|
||||
integration-tests:
|
||||
machine:
|
||||
@@ -129,10 +135,15 @@ jobs:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install python-pip jq pv
|
||||
sudo pip install awscli
|
||||
# kick off creation of test VMs
|
||||
- run: test -z "$SECRET_PASSWORD" || bin/setup-circleci-secrets "$SECRET_PASSWORD"
|
||||
- run: test -z "$SECRET_PASSWORD" || (cd $SRCDIR/integration; ./gce.sh make_template)
|
||||
- run: test -z "$SECRET_PASSWORD" || (cd $SRCDIR/integration; ./gce.sh setup && eval $(./gce.sh hosts); ./setup.sh)
|
||||
- run: make deps; touch tools/runner/runner
|
||||
- run:
|
||||
command: test -z "$SECRET_PASSWORD" || (cd $SRCDIR/integration; eval $(./gce.sh hosts); ./run_all.sh)
|
||||
no_output_timeout: 5m
|
||||
|
||||
Reference in New Issue
Block a user