general: branches: ignore: - gh-pages machine: services: - docker environment: GOPATH: /home/ubuntu SRCDIR: /home/ubuntu/src/github.com/weaveworks/scope 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: /home/ubuntu/src/github.com/weaveworks/weave dependencies: cache_directories: - "~/docker" post: - sudo apt-get update - sudo apt-get install jq pv - curl https://sdk.cloud.google.com | bash - test -z "$SECRET_PASSWORD" || bin/setup-circleci-secrets "$SECRET_PASSWORD" - go get $WEAVE_REPO/... - make -C $WEAVE_ROOT testing/runner/runner - make deps - mkdir -p $(dirname $SRCDIR) - cp -r $(pwd)/ $SRCDIR - cd $SRCDIR/client; ../tools/rebuild-image weaveworks/scope-ui-build . Dockerfile package.json webpack.production.config.js .eslintrc - touch $SRCDIR/.scope_ui_build.uptodate - cd $SRCDIR/backend; ../tools/rebuild-image weaveworks/scope-backend-build . Dockerfile build.sh - touch $SRCDIR/.scope_backend_build.uptodate test: override: - cd $SRCDIR; ./tools/lint . - cd $SRCDIR; make RM= tests - cd $SRCDIR; make RM= client-test - cd $SRCDIR; make RM= static - cd $SRCDIR; rm -f app/scope-app probe/scope-probe; GOARCH=arm make RM= app/scope-app probe/scope-probe - cd $SRCDIR; rm -f app/scope-app probe/scope-probe; GOOS=darwin make RM= app/scope-app probe/scope-probe - cd $SRCDIR; rm -f app/scope-app probe/scope-probe; make RM= - cd $SRCDIR/experimental; make RM= - test -z "$SECRET_PASSWORD" || (cd $SRCDIR/integration; ./gce.sh setup) - test -z "$SECRET_PASSWORD" || (cd $SRCDIR/integration; eval $(./gce.sh hosts); ./setup.sh) - test -z "$SECRET_PASSWORD" || (cd $SRCDIR/integration; eval $(./gce.sh hosts); ./run_all.sh): timeout: 300 post: - test -z "$SECRET_PASSWORD" || (cd $SRCDIR/integration; ./gce.sh destroy) - goveralls -repotoken $COVERALLS_REPO_TOKEN -coverprofile=$SRCDIR/profile.cov -service=circleci || true - cd $SRCDIR; cp coverage.html $CIRCLE_ARTIFACTS - cd $SRCDIR; cp scope.tar $CIRCLE_ARTIFACTS deployment: hub: branch: master owner: weaveworks commands: - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS - docker push weaveworks/scope