forked from aarondl/authboss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
16 lines (16 loc) · 633 Bytes
/
circle.yml
File metadata and controls
16 lines (16 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
test:
pre:
- go get github.com/jstemmer/go-junit-report
- go get github.com/mattn/goveralls
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