There was an error while loading. Please reload this page.
1 parent 0440447 commit bbfb5b7Copy full SHA for bbfb5b7
.travis.yml
@@ -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
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+set -e
+echo "" > coverage.txt
+for d in $(go list ./... | grep -v vendor); do
+ echo $d
+ go test -coverprofile=profile.out -covermode=atomic $d
+ if [ -f profile.out ]; then
+ cat profile.out >> coverage.txt
+ rm profile.out
+ fi
+done
0 commit comments