1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-10 04:17:59 +02:00

Fix circle test running

This commit is contained in:
Aaron L 2016-08-07 23:53:53 -07:00
parent 83c72ea507
commit 958f5f1fe1

View File

@ -16,8 +16,7 @@ test:
override: override:
- > - >
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 && cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 &&
go test -v -race ./... | go test -v -race ./... > $CIRCLE_ARTIFACTS/gotest.txt
/home/ubuntu/.go_project/bin/go-junit-report >> $CIRCLE_TEST_REPORTS/junit.xml
- > - >
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 && cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 &&
echo "mode: set" > $CIRCLE_ARTIFACTS/coverage.txt && echo "mode: set" > $CIRCLE_ARTIFACTS/coverage.txt &&
@ -27,6 +26,7 @@ test:
tail -n +2 coverage.tmp >> $CIRCLE_ARTIFACTS/coverage.txt; tail -n +2 coverage.tmp >> $CIRCLE_ARTIFACTS/coverage.txt;
done done
post: post:
- cat $CIRCLE_ARTIFACTS/gotest.txt | /home/ubuntu/.go_project/bin/go-junit-report > $CIRCLE_TEST_REPORTS/junit.xml
- > - >
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 && cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 &&
/home/ubuntu/.go_project/bin/goveralls -coverprofile=$CIRCLE_ARTIFACTS/coverage.txt -service=circle-ci -repotoken=$COVERALLS_TOKEN /home/ubuntu/.go_project/bin/goveralls -coverprofile=$CIRCLE_ARTIFACTS/coverage.txt -service=circle-ci -repotoken=$COVERALLS_TOKEN