-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
32 lines (28 loc) · 884 Bytes
/
.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
language: go
go:
- 1.8
# Don't build other branches that are being used for PRs.
# Currently only the master branch is used in this repo.
branches:
only:
- master
before_install:
- go get github.com/mitchellh/gox
- go get -u github.com/kyoh86/richgo
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get -u github.com/golang/lint/golint
- go get -u github.com/haya14busa/goverage
script:
- go vet ./...
- golint -set_exit_status .
- goverage -v -coverprofile=c.out ./...
- goveralls -coverprofile=c.out -service travis-ci -repotoken $COVERALLS_TOKEN
after_success:
- gox -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}"
- if [ "$TRAVIS_BRANCH" == "master" ]; then
git config credential.helper "store --file=.git/credentials";
echo "https://${GITHUB_TOKEN}:@github.com" > .git/credentials;
go install;
go-tag;
fi