2013-12-02 18:08:55 -08:00
language : go
2017-04-30 13:10:04 +02:00
sudo : false
2017-05-02 20:18:11 +02:00
dist : trusty
2016-12-08 13:36:44 +01:00
go_import_path : gobot.io/x/gobot
2013-12-02 18:08:55 -08:00
go :
2017-05-24 11:17:32 +02:00
- 1.7 .6
2017-05-25 09:21:51 +02:00
- 1.8 .3
2017-08-25 07:00:17 +02:00
- 1.9 .0
2017-04-30 13:10:04 +02:00
- tip
2015-07-15 13:00:01 -07:00
matrix :
2017-04-30 13:10:04 +02:00
allow_failures :
- go : tip
addons :
apt :
packages :
2017-04-30 13:36:55 +02:00
- libcv-dev
- libcvaux-dev
- libhighgui-dev
- libopencv-dev
- libsdl2-dev
- libsdl2-image-dev
2017-05-02 20:19:44 +02:00
- libsdl2-2.0.0
2017-04-30 13:36:55 +02:00
- libusb-dev
- xvfb
- unzip
- libgtk2.0-0
2014-06-13 18:03:50 -07:00
before_install :
2017-04-30 13:10:04 +02:00
- cd $HOME/gopath/src/gobot.io/x/gobot
- go get github.com/axw/gocov/gocov
2016-10-03 08:25:07 +02:00
install :
2017-04-30 13:10:04 +02:00
- make deps
2014-07-23 17:00:41 -07:00
before_script :
2017-04-30 13:10:04 +02:00
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
2013-12-02 18:08:55 -08:00
script :
2017-04-30 13:10:04 +02:00
- echo "Ensuring code is well formatted"; ! gofmt -s -d . | read
2017-05-11 15:57:03 +02:00
- bash -c 'set -e; echo "" > coverage.txt; for d in $(go list ./...); do go test -covermode=set -coverprofile=p.out $d; if [ -f p.out ]; then cat p.out >> coverage.txt; rm p.out; fi; done'
2017-02-16 13:20:04 +01:00
after_success :
2017-04-30 13:10:04 +02:00
- bash <(curl -s https://codecov.io/bash)
2014-01-20 23:22:41 -08:00
branches :
2017-04-30 13:10:04 +02:00
except :
- gobot.io
- /^gobot-.*$/
2017-02-16 13:20:04 +01:00
secure : "HggklzWOwKqImvjQe1yvojCoTaUBDrOVXRjsrZaoTaKpUtmho1tpCMtKF1dbyT0T5Y68P6f9e/XyANWVeziJNZ+YmNkY+CNdNYHiNnpl8att3MuL4hpwKDPAqLK8H2G+71j3O/rBvf6oIJHtSEesR5Sbb+2fSmhNFtLrDgp5FZA="