2015-11-12 09:25:00 +00:00
|
|
|
language: go
|
2015-11-12 09:17:13 +00:00
|
|
|
go:
|
|
|
|
- 1.5
|
2015-11-12 09:31:52 +00:00
|
|
|
env:
|
|
|
|
- "PATH=/home/travis/gopath/bin:$PATH"
|
2015-12-07 09:17:13 +00:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2015-12-09 08:40:49 +00:00
|
|
|
notifications:
|
|
|
|
irc: "chat.freenode.net#gorepost-test"
|
2015-11-12 09:31:52 +00:00
|
|
|
before_install:
|
|
|
|
- go get github.com/arachnist/gorepost/bot
|
|
|
|
- go get github.com/arachnist/gorepost/irc
|
2015-12-06 11:29:51 +00:00
|
|
|
- go get github.com/axw/gocov/gocov
|
|
|
|
- go get github.com/mattn/goveralls
|
2015-12-06 11:50:20 +00:00
|
|
|
- go get github.com/go-playground/overalls
|
2015-12-06 11:29:51 +00:00
|
|
|
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
|
2015-12-14 14:06:32 +00:00
|
|
|
- echo "deb http://pl.archive.ubuntu.com/ubuntu trusty main restricted universe multiverse" | sudo tee /etc/apt/sources.list
|
2015-12-07 09:17:13 +00:00
|
|
|
- echo "deb http://pl.archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
|
|
|
|
- echo "deb http://pl.archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get install -y kyototycoon
|
2015-12-07 09:03:04 +00:00
|
|
|
before_script:
|
|
|
|
- ktserver -dmn -host 127.0.0.1 -port 1337
|
2015-11-12 09:17:13 +00:00
|
|
|
script:
|
2015-12-09 01:06:33 +00:00
|
|
|
- go test -race -v ./...
|
2015-12-08 23:15:06 +00:00
|
|
|
- $HOME/gopath/bin/overalls -project=github.com/arachnist/gorepost -covermode=count -debug
|
2015-12-06 11:50:20 +00:00
|
|
|
- $HOME/gopath/bin/goveralls -coverprofile=overalls.coverprofile -service=travis-ci
|