Skip to content

Commit bbfb5b7

Browse files
committed
🐗 CI test
1 parent 0440447 commit bbfb5b7

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: go
2+
3+
go:
4+
- 1.11.x
5+
6+
# whitelist
7+
branches:
8+
only:
9+
- master
10+
- stable
11+
12+
script:
13+
- go get -t -v ./...
14+
- go vet ./...
15+
- bash ./test.sh
16+
17+
after_success:
18+
- bash <(curl -s https://codecov.io/bash)

test.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
#!/usr/bin/env bash
3+
4+
set -e
5+
echo "" > coverage.txt
6+
7+
for d in $(go list ./... | grep -v vendor); do
8+
echo $d
9+
go test -coverprofile=profile.out -covermode=atomic $d
10+
if [ -f profile.out ]; then
11+
cat profile.out >> coverage.txt
12+
rm profile.out
13+
fi
14+
done

0 commit comments

Comments
 (0)