Skip to content

Commit 4c4dbc6

Browse files
committed
Refactored travis checks
1 parent 058313e commit 4c4dbc6

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.travis.yml

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

3+
4+
sudo: false
5+
6+
7+
env:
8+
global:
9+
- PATH=$HOME/gopath/bin:$PATH
10+
11+
312
go:
413
- 1.4.2
514

15+
616
install:
7-
- export PATH=$HOME/gopath/bin:$PATH
8-
- go get golang.org/x/tools/cmd/cover
17+
- make travis_install
18+
919

1020
script:
11-
- make Godeps
12-
- make build
13-
- go test -v -covermode=count -coverprofile=profile.cov
21+
- make travis_run

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,11 @@ cross: scwversion/version.go
7272
touch tmp/bin/*
7373
mv tmp/bin/* dist/
7474
rm -rf tmp dist/godep
75+
76+
77+
travis_install:
78+
go get golang.org/x/tools/cmd/cover
79+
80+
81+
travis_run: build
82+
go test -v -covermode=count -coverprofile=profile.cov

0 commit comments

Comments
 (0)