mirror of
https://github.com/volatiletech/authboss.git
synced 2025-02-09 13:47:09 +02:00
Add coverage and junit reporting for authboss
This commit is contained in:
parent
372a2bf73b
commit
7a7ca7c5c7
@ -3,7 +3,7 @@
|
||||
Authboss
|
||||
========
|
||||
|
||||
[![GoDoc](https://godoc.org/gopkg.in/authboss.v0?status.svg)](https://godoc.org/gopkg.in/authboss.v0) [![Build Status](https://drone.io/github.com/go-authboss/authboss/status.png)](https://drone.io/github.com/go-authboss/authboss/latest) [![Coverage Status](https://coveralls.io/repos/go-authboss/authboss/badge.svg?branch=master)](https://coveralls.io/r/go-authboss/authboss?branch=master) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-authboss/authboss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
||||
[![GoDoc](https://godoc.org/gopkg.in/authboss.v0?status.svg)](https://godoc.org/gopkg.in/authboss.v0) [![Build Status](https://circleci.com/gh/go-authboss/authboss.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/go-authboss/authboss) [![Coverage Status](https://coveralls.io/repos/go-authboss/authboss/badge.svg?branch=master)](https://coveralls.io/r/go-authboss/authboss?branch=master) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-authboss/authboss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
||||
|
||||
Authboss is a modular authentication system for the web. It tries to remove as much boilerplate and "hard things" as possible so that
|
||||
each time you start a new web project in Go, you can plug it in, configure, and start building your app without having to build an
|
||||
|
20
circle.yml
20
circle.yml
@ -10,5 +10,23 @@ dependencies:
|
||||
- cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 && go get -t -d -v ./...
|
||||
- cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 && go build -v
|
||||
test:
|
||||
pre:
|
||||
- go get github.com/jstemmer/go-junit-report
|
||||
- go get github.com/mattn/goveralls
|
||||
override:
|
||||
- cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 && go test -v -race ./...
|
||||
- >
|
||||
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 &&
|
||||
go test -v -race ./... |
|
||||
/home/ubuntu/.go_project/bin/go-junit-report >> $CIRCLE_TEST_REPORTS/junit.xml
|
||||
- >
|
||||
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 &&
|
||||
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:
|
||||
- >
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user