mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 09:41:57 +00:00
Try using thingdoer
This commit is contained in:
65
tasks.yml
Normal file
65
tasks.yml
Normal file
@@ -0,0 +1,65 @@
|
||||
- name: build-image
|
||||
command: >
|
||||
cd backend;
|
||||
../tools/rebuild-image weaveworks/scope-backend-build . Dockerfile build.sh && \
|
||||
touch $SRCDIR/.scope_backend_build.uptodate
|
||||
|
||||
- name: ui-build-image
|
||||
command: >
|
||||
cd client;
|
||||
../tools/rebuild-image weaveworks/scope-ui-build . Dockerfile package.json webpack.production.config.js .eslintrc .babelrc && \
|
||||
touch $SRCDIR/.scope_ui_build.uptodate
|
||||
|
||||
- name: vm-template
|
||||
command: test -z "$SECRET_PASSWORD" || (cd integration; ./gce.sh make_template)
|
||||
|
||||
- name: arm-darwin-build
|
||||
after: [build-image]
|
||||
command: >
|
||||
rm -f prog/scope;
|
||||
if [ "$CIRCLE_NODE_INDEX" = "0" ]; then
|
||||
GOARCH=arm make GO_BUILD_INSTALL_DEPS= RM= prog/scope;
|
||||
else
|
||||
GOOS=darwin make GO_BUILD_INSTALL_DEPS= RM= prog/scope;
|
||||
fi
|
||||
|
||||
- name: build
|
||||
after: [arm-darwin-build, ui-build-image]
|
||||
command: rm -f prog/scope; make RM=
|
||||
|
||||
- name: integration
|
||||
after: [build, vm-template]
|
||||
command: >
|
||||
test -z "$SECRET_PASSWORD" || (
|
||||
cd integration;
|
||||
./gce.sh setup &&
|
||||
eval $(./gce.sh hosts) &&
|
||||
./setup.sh &&
|
||||
./run_all.sh &&
|
||||
./gce.sh destroy
|
||||
)
|
||||
|
||||
- name: lint
|
||||
after: [build-image]
|
||||
command: make RM= lint
|
||||
|
||||
- name: test
|
||||
after: [build-image]
|
||||
command: COVERDIR=./coverage make RM= tests
|
||||
|
||||
- name: client-test
|
||||
after: [ui-build-image]
|
||||
command: make RM= client-test static
|
||||
|
||||
- name: coverage
|
||||
after: [test]
|
||||
command: >
|
||||
test "$CIRCLE_NODE_INDEX" != "0" || (
|
||||
./tools/cover/gather_coverage.sh ./coverage $SRCDIR/coverage;
|
||||
goveralls -repotoken $COVERALLS_REPO_TOKEN -coverprofile=$SRCDIR/profile.cov -service=circleci || true;
|
||||
cp coverage.* scope.tar $CIRCLE_ARTIFACTS
|
||||
)
|
||||
|
||||
- name: experimental
|
||||
after: [build-image]
|
||||
command: cd experimental; ./build_on_circle.sh
|
||||
Reference in New Issue
Block a user