-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
28 lines (23 loc) · 1.09 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
language: go
go:
- 1.2
notifications:
irc: "irc.freenode.net#masterminds"
before_script:
- go get code.google.com/p/go.tools/cmd/cover
- go get github.com/hailiang/goveralls
# Doing the test coverage piece part until Go supports it natively. See
# http://code.google.com/p/go/issues/detail?id=6909 for more details.
# script:
# - go test -v -covermode=count -coverprofile=profile.cov ./...
# - ~/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci -repotoken=$COVERALLS_TOKEN
script:
- go test -v -covermode=count -coverprofile=color.part ./color
- go test -v -covermode=count -coverprofile=nautical.part ./nautical
- go test -v -covermode=count -coverprofile=radial.part ./radial
- 'echo "mode: count" >coverage.out'
- 'grep -h -v "mode: count" *.part >>coverage.out'
- ~/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken=$COVERALLS_TOKEN
env:
global:
secure: "TEF+xU1ZocKNZVSxiYOGLoVy3VLo67j9XsvvNAdKCHcBDT1gwZzkA4JeAM7NoOcLthNSYLLMbY2LofdYnCe2U93OVbCnm8za6CltouII1W9y0wEq+1DM7tnK2nBDQQBlqUo3qDgvICN7GcRa4oml8oGkf1pXgjooHjMCzIddKHw="