1
0
mirror of https://github.com/volatiletech/authboss.git synced 2024-11-28 08:58:38 +02:00
authboss/circle.yml

17 lines
633 B
YAML
Raw Normal View History

2016-07-30 16:32:36 +02:00
test:
pre:
- go get github.com/jstemmer/go-junit-report
- go get github.com/mattn/goveralls
2016-07-30 16:32:36 +02:00
override:
- go test -v -race ./... > $CIRCLE_ARTIFACTS/gotest.txt
- >
echo "mode: set" > $CIRCLE_ARTIFACTS/coverage.txt &&
for i in $(go list ./...); do
rm -f coverage.tmp;
go test -v -coverprofile coverage.tmp $i;
tail -n +2 coverage.tmp >> $CIRCLE_ARTIFACTS/coverage.txt;
done
post:
- cat $CIRCLE_ARTIFACTS/gotest.txt | go-junit-report > $CIRCLE_TEST_REPORTS/junit.xml
- goveralls -coverprofile=$CIRCLE_ARTIFACTS/coverage.txt -service=circle-ci -repotoken=$COVERALLS_TOKEN