2013-12-03 10:08:55 +08:00
|
|
|
language: go
|
2015-07-16 04:00:01 +08:00
|
|
|
sudo: true
|
2013-12-03 10:08:55 +08:00
|
|
|
go:
|
2016-02-09 07:31:52 +08:00
|
|
|
- 1.4
|
|
|
|
- 1.5
|
|
|
|
- 1.6
|
2016-09-01 18:44:18 +08:00
|
|
|
- 1.7
|
2013-12-03 10:08:55 +08:00
|
|
|
- tip
|
2015-07-16 04:00:01 +08:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
2016-10-03 16:25:56 +08:00
|
|
|
- go: 1.4
|
|
|
|
- go: 1.5
|
2014-06-14 09:03:50 +08:00
|
|
|
before_install:
|
2014-06-14 09:44:18 +08:00
|
|
|
- sudo add-apt-repository -y ppa:kubuntu-ppa/backports
|
|
|
|
- sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots
|
2014-06-14 09:15:55 +08:00
|
|
|
- sudo apt-get update
|
2016-07-18 06:16:31 +08:00
|
|
|
- sudo apt-get install --force-yes libcv-dev libcvaux-dev libhighgui-dev libopencv-dev libsdl2-dev libsdl2-image-dev libsdl2 libusb-dev xvfb unzip libgtk2.0-0
|
|
|
|
- mkdir -p gnatsd
|
|
|
|
- cd gnatsd
|
2016-10-01 23:25:00 +08:00
|
|
|
- "wget https://github.com/nats-io/gnatsd/releases/download/v0.9.4/gnatsd-v0.9.4-linux-amd64.zip"
|
|
|
|
- unzip -j gnatsd-v0.9.4-linux-amd64.zip
|
2016-07-18 05:51:17 +08:00
|
|
|
- ./gnatsd -p 4222 &
|
|
|
|
- ./gnatsd -p 4223 --user test --pass testwd &
|
2016-07-18 06:16:31 +08:00
|
|
|
- cd $HOME/gopath/src/github.com/hybridgroup/gobot
|
2016-07-18 05:55:06 +08:00
|
|
|
- go get github.com/axw/gocov/gocov
|
2016-07-18 06:16:31 +08:00
|
|
|
- go get github.com/mattn/goveralls
|
2016-02-04 10:27:37 +08:00
|
|
|
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
|
2016-10-03 14:25:07 +08:00
|
|
|
install:
|
|
|
|
- make deps
|
2014-07-24 08:00:41 +08:00
|
|
|
before_script:
|
|
|
|
- export DISPLAY=:99.0
|
|
|
|
- sh -e /etc/init.d/xvfb start
|
2013-12-03 10:08:55 +08:00
|
|
|
script:
|
2016-10-20 16:03:02 +08:00
|
|
|
- ./ci/travis.sh
|
2014-01-21 15:22:41 +08:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- gobot.io
|
2014-04-18 02:20:49 +08:00
|
|
|
- /^gobot-.*$/
|