Skip to content

Commit 399b4ca

Browse files
author
Thomas Boerger
committed
Restructured the travis config
1 parent 060337f commit 399b4ca

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.travis.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
language: go
22

33
go:
4-
- 1.4
5-
- 1.5
64
- 1.6
75
- 1.7
86

97
before_install:
108
- sudo apt-get update -qq
119
- sudo apt-get install -y libpam-dev
12-
- go get github.com/msteinert/pam
10+
- go get github.com/msteinert/pam
1311

1412
install:
1513
- go get -t -v ./...
1614

17-
script:
18-
- go build -v -tags "pam"
19-
- go test -v -cover -race ./...
15+
script: |
16+
go build -v -tags "pam"
17+
18+
for pkg in $(go list ./... | grep -v /vendor/)
19+
do
20+
go test -v -race -cover -coverprofile $GOPATH/src/$pkg/coverage.out $pkg || exit 1
21+
done
22+
23+
after_success:
24+
- bash <(curl -s https://codecov.io/bash)
2025

2126
notifications:
22-
email:
23-
24-
slack: gophercn:o5pSanyTeNhnfYc3QnG0X7Wx
2527
webhooks:
28+
on_success: change
29+
on_failure: always
30+
on_start: never
2631
urls:
27-
- https://webhooks.gitter.im/e/b590f8e03882f7aedc3e
28-
on_success: change
29-
on_failure: always
30-
on_start: never
32+
- https://webhooks.gitter.im/e/ee6b822f3cf54c98e70c
33+
- https://webhooks.gitter.im/e/87428658ef177ce8a7e4
34+
- https://webhooks.gitter.im/e/a1d2b69804dfda72187e

0 commit comments

Comments
 (0)