-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
29 lines (23 loc) · 855 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
---
language: go
go:
- 1.5
- 1.5.3
- 1.6
sudo : false
notifications:
irc:
channels:
- "irc.pl0rt.org#sp0rklf"
skip_join: true
before_install:
# As the source is hardcoded to github.com/fluffle put in symlinks to allow others to build
- if [ "$TRAVIS_REPO_SLUG" != "fluffle/golog" ] ; then mkdir /home/travis/gopath/src/github.com/fluffle; ln -s "$HOME/gopath/src/github.com/$TRAVIS_REPO_SLUG" /home/travis/gopath/src/github.com/fluffle/golog ; fi
# Dependencies for code coverage
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
script:
# goveralls (code coverage) will invoke unit tests
- cd /home/travis/gopath/src/github.com/fluffle/golog/logging
- $HOME/gopath/bin/goveralls -service=travis-ci