Run coverage stuff outside thingdoer so its guaranteed to run after both shards have completed.

This commit is contained in:
Tom Wilkie
2016-05-19 12:59:42 +01:00
parent 405802e466
commit 83f85a1be5
2 changed files with 6 additions and 9 deletions

View File

@@ -32,6 +32,12 @@ test:
cd $SRCDIR;
go get ./tools/thingdoer;
thingdoer tasks.yml
- >
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
)
deployment:
hub:

View File

@@ -52,15 +52,6 @@
after: [ui-build-image]
command: make RM= RUN_FLAGS= 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