File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ install:
11
11
# - go get golang.org/x/tools/cmd/vet
12
12
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
13
13
- go get github.com/mattn/goveralls
14
- - go get gopkg.in/check.v1
15
- - go get github.com/tools/godep
16
14
before_script :
17
- - godep restore
18
15
- gofmt -l -w .
19
16
- goimports -l -w .
20
17
- golint .
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # The script does automatic checking on a Go package and its sub-packages, including:
3
- # 6. test coverage (http://blog.golang.org/cover)
4
2
5
3
set -e
6
4
7
- # Run test coverage on each subdirectories and merge the coverage profile.
5
+ # Add godep workspace to GOPATH. We do it manually instead of using
6
+ # 'godep go test' or 'godep restore' so godep doesn't need to be installed.
7
+ GOPATH=" $PWD /Godeps/_workspace:$GOPATH "
8
+
9
+ # Install packages before testing. Not doing this would cause
10
+ # 'go test' to recompile all package dependencies before testing each package.
11
+ go install ./...
8
12
13
+ # Run test coverage on each subdirectories and merge the coverage profile.
9
14
echo " mode: count" > profile.cov
10
15
11
16
# Standard go tooling behavior is to ignore dirs with leading underscors
You can’t perform that action at this time.
0 commit comments