Skip to content

Commit

Permalink
Merge pull request #7 from miracl/covonetime
Browse files Browse the repository at this point in the history
Collect coverage only for tip of go on linux
  • Loading branch information
VMitov committed Feb 9, 2017
2 parents 61b01a2 + 790c5a5 commit 4c686d3
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@ os:
- linux
- osx

before_install:
- go get github.com/golang/lint/golint
- go get github.com/mattn/goveralls

install:
- echo "This is an override of the default install deps step in travis."
- if [ "$TRAVIS_GO_VERSION" = "master" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then run_analyzers=true; fi;
- if [ "$run_analyzers" = true ]; then go get github.com/golang/lint/golint; fi;
- if [ "$run_analyzers" = true ]; then go get github.com/mattn/goveralls; fi;

before_script:
- go vet $(go list ./... | grep -v vendor)
- test -z "$(gofmt -s -l . 2>&1 | grep -v vendor | tee /dev/stderr)"
- go list ./... | grep -v /vendor/ | xargs -L1 golint
- if [ "$run_analyzers" = true ]; then go vet $(go list ./... | grep -v vendor); fi;
- if [ "$run_analyzers" = true ]; then test -z "$(gofmt -s -l . 2>&1 | grep -v vendor | tee /dev/stderr)"; fi;
- if [ "$run_analyzers" = true ]; then go list ./... | grep -v /vendor/ | xargs -L1 golint; fi;

script:
- goveralls -service=travis-ci
- if [ "$run_analyzers" = true ]; then goveralls -service=travis-ci; else go test $(go list ./... | grep -v /vendor/); fi;

0 comments on commit 4c686d3

Please sign in to comment.