-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
41 lines (31 loc) · 1.07 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: go
# Golang version matrix
go:
- 1.11
before_install:
# Install code coverage / coveralls tooling
- go get -u github.com/axw/gocov/gocov
- go get -u github.com/mattn/goveralls
- go get -u golang.org/x/tools/cmd/cover
# Merge all subpackage code coverage reports into a single report
- go get -u github.com/modocache/gover
# Install golint to lint the code
- go get -u golang.org/x/lint/golint
# Install errcheck to check that all errors have been handled
- go get -u github.com/kisielk/errcheck
# Install cyclomatic dependency analysis tool
- go get -u github.com/fzipp/gocyclo
before_script:
# Print build info.
- echo $TRAVIS_COMMIT
- echo $TRAVIS_TAG
- echo $TRAVIS_BRANCH
- echo $TRAVIS_BUILD_NUMBER
- echo $TRAVIS_REPO_SLUG
script:
- ./precommit.py
after_success:
# Merge all coverage reports located in subdirectories and put them under: gover.coverprofile
- gover
# Send code coverage report to coveralls.io
- goveralls -service=travis-ci -coverprofile=gover.coverprofile