Skip to content

Commit a44f7f1

Browse files
committed
Added ci
Signed-off-by: Vishal Rana <[email protected]>
1 parent df04f03 commit a44f7f1

File tree

4 files changed

+29
-4
lines changed

4 files changed

+29
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
vendor
2-
_test
2+
_test
3+
coverage.txt

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: go
2+
go:
3+
- 1.7
4+
- 1.8
5+
- tip
6+
install:
7+
- make dependency
8+
script:
9+
- make test
10+
after_success:
11+
- bash <(curl -s https://codecov.io/bash)
12+
matrix:
13+
allow_failures:
14+
- go: tip

Gopkg.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
dependency:
2+
go get -u github.com/golang/dep/cmd/dep
3+
dep ensure -update
4+
5+
test:
6+
echo "" > coverage.txt
7+
for d in $(shell go list ./... | grep -v vendor); do \
8+
go test -race -coverprofile=profile.out -covermode=atomic $$d; \
9+
[ -f profile.out ] && cat profile.out >> coverage.txt && rm profile.out; \
10+
done

0 commit comments

Comments
 (0)