-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
33 lines (33 loc) · 968 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
33
os:
- linux
language: go
sudo: false
go:
- release
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
install:
- go get -u -t simonwaldherr.de/go/cgolGo/...
- go get github.com/modocache/gover
script:
- $HOME/gopath/bin/cgol -d 100
- go test -v -coverprofile=life.coverprofile ./life
- go test -v -coverprofile=gif.coverprofile ./gif
# combine all coverprofiles in one file
- $HOME/gopath/bin/gover
# send coverage details to Coveralls.io
- $HOME/gopath/bin/goveralls -coverprofile=gover.coverprofile -service=travis-ci
# generate a coverage detail HTML page
- go tool cover -html=gover.coverprofile -o coverage.html
# print the coverage percentage for each function to the log
- go tool cover -func=gover.coverprofile
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
email:
recipients:
on_success: always
on_failure: always