mirror of
https://github.com/weaveworks/scope.git
synced 2026-02-14 18:09:59 +00:00
65 lines
2.2 KiB
YAML
65 lines
2.2 KiB
YAML
general:
|
|
branches:
|
|
ignore:
|
|
- gh-pages
|
|
|
|
machine:
|
|
services:
|
|
- docker
|
|
environment:
|
|
GOPATH: /home/ubuntu:$GOPATH
|
|
TOOLS: /home/ubuntu/src/github.com/weaveworks/tools
|
|
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:
|
|
- mkdir -p $TOOLS
|
|
- git clone https://github.com/weaveworks/tools.git $TOOLS
|
|
- sudo apt-get update
|
|
- sudo apt-get --only-upgrade install tar libpcap0.8-dev
|
|
- sudo apt-get install jq
|
|
- 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
|
|
- go version
|
|
- go clean -i net
|
|
- go install -tags netgo std
|
|
- 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
|
|
|
|
test:
|
|
override:
|
|
- cd $SRCDIR; $TOOLS/lint .
|
|
- cd $SRCDIR; make client-test
|
|
- cd $SRCDIR; make static
|
|
- cd $SRCDIR; rm -f app/scope-app probe/scope-probe; make
|
|
- cd $SRCDIR; $TOOLS/test -slow
|
|
- cd $SRCDIR/experimental; make
|
|
- 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
|