Skip to content

Commit bc55489

Browse files
committed
Remove unnecessary circle due to gopkg.in
1 parent 0c3d6d2 commit bc55489

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

circle.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,16 @@
1-
machine:
2-
environment:
3-
GOPATH: "${HOME}/.go_project"
4-
checkout:
5-
post:
6-
- mkdir -p /home/ubuntu/.go_project/src/gopkg.in
7-
- ln -s /home/ubuntu/authboss /home/ubuntu/.go_project/src/github.com/go-authboss/authboss
8-
dependencies:
9-
override:
10-
- cd /home/ubuntu/.go_project/src/github.com/go-authboss/authboss && go get -t -d -v ./...
11-
- cd /home/ubuntu/.go_project/src/github.com/go-authboss/authboss && go build -v
121
test:
132
pre:
143
- go get github.com/jstemmer/go-junit-report
154
- go get github.com/mattn/goveralls
165
override:
6+
- go test -v -race ./... > $CIRCLE_ARTIFACTS/gotest.txt
177
- >
18-
cd /home/ubuntu/.go_project/src/github.com/go-authboss/authboss &&
19-
go test -v -race ./... > $CIRCLE_ARTIFACTS/gotest.txt
20-
- >
21-
cd /home/ubuntu/.go_project/src/github.com/go-authboss/authboss &&
228
echo "mode: set" > $CIRCLE_ARTIFACTS/coverage.txt &&
239
for i in $(go list ./...); do
2410
rm -f coverage.tmp;
25-
go test -v -coverprofile coverage.tmp $i &&
11+
go test -v -coverprofile coverage.tmp $i;
2612
tail -n +2 coverage.tmp >> $CIRCLE_ARTIFACTS/coverage.txt;
2713
done
2814
post:
29-
- cat $CIRCLE_ARTIFACTS/gotest.txt | /home/ubuntu/.go_project/bin/go-junit-report > $CIRCLE_TEST_REPORTS/junit.xml
30-
- >
31-
if [ -n "$COVERALLS_TOKEN" ]; then
32-
cd /home/ubuntu/.go_project/src/github.com/go-authboss/authboss &&
33-
/home/ubuntu/.go_project/bin/goveralls -coverprofile=$CIRCLE_ARTIFACTS/coverage.txt -service=circle-ci -repotoken=$COVERALLS_TOKEN;
34-
fi
15+
- cat $CIRCLE_ARTIFACTS/gotest.txt | go-junit-report > $CIRCLE_TEST_REPORTS/junit.xml
16+
- goveralls -coverprofile=$CIRCLE_ARTIFACTS/coverage.txt -service=circle-ci -repotoken=$COVERALLS_TOKEN

0 commit comments

Comments
 (0)