mirror of
https://github.com/volatiletech/authboss.git
synced 2025-09-16 09:06:20 +02:00
Remove unnecessary circle due to gopkg.in
This commit is contained in:
26
circle.yml
26
circle.yml
@@ -1,34 +1,16 @@
|
|||||||
machine:
|
|
||||||
environment:
|
|
||||||
GOPATH: "${HOME}/.go_project"
|
|
||||||
checkout:
|
|
||||||
post:
|
|
||||||
- mkdir -p /home/ubuntu/.go_project/src/gopkg.in
|
|
||||||
- ln -s /home/ubuntu/authboss /home/ubuntu/.go_project/src/github.com/go-authboss/authboss
|
|
||||||
dependencies:
|
|
||||||
override:
|
|
||||||
- cd /home/ubuntu/.go_project/src/github.com/go-authboss/authboss && go get -t -d -v ./...
|
|
||||||
- cd /home/ubuntu/.go_project/src/github.com/go-authboss/authboss && go build -v
|
|
||||||
test:
|
test:
|
||||||
pre:
|
pre:
|
||||||
- go get github.com/jstemmer/go-junit-report
|
- go get github.com/jstemmer/go-junit-report
|
||||||
- go get github.com/mattn/goveralls
|
- go get github.com/mattn/goveralls
|
||||||
override:
|
override:
|
||||||
|
- go test -v -race ./... > $CIRCLE_ARTIFACTS/gotest.txt
|
||||||
- >
|
- >
|
||||||
cd /home/ubuntu/.go_project/src/github.com/go-authboss/authboss &&
|
|
||||||
go test -v -race ./... > $CIRCLE_ARTIFACTS/gotest.txt
|
|
||||||
- >
|
|
||||||
cd /home/ubuntu/.go_project/src/github.com/go-authboss/authboss &&
|
|
||||||
echo "mode: set" > $CIRCLE_ARTIFACTS/coverage.txt &&
|
echo "mode: set" > $CIRCLE_ARTIFACTS/coverage.txt &&
|
||||||
for i in $(go list ./...); do
|
for i in $(go list ./...); do
|
||||||
rm -f coverage.tmp;
|
rm -f coverage.tmp;
|
||||||
go test -v -coverprofile coverage.tmp $i &&
|
go test -v -coverprofile coverage.tmp $i;
|
||||||
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
|
- 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
|
||||||
if [ -n "$COVERALLS_TOKEN" ]; then
|
|
||||||
cd /home/ubuntu/.go_project/src/github.com/go-authboss/authboss &&
|
|
||||||
/home/ubuntu/.go_project/bin/goveralls -coverprofile=$CIRCLE_ARTIFACTS/coverage.txt -service=circle-ci -repotoken=$COVERALLS_TOKEN;
|
|
||||||
fi
|
|
||||||
|
Reference in New Issue
Block a user