2013-12-03 10:08:55 +08:00
language : go
2015-07-16 04:00:01 +08:00
sudo : true
2016-12-08 20:36:44 +08:00
go_import_path : gobot.io/x/gobot
2013-12-03 10:08:55 +08:00
go :
2016-09-01 18:44:18 +08:00
- 1.7
2017-04-08 23:36:25 +08:00
- 1.8 .1
2013-12-03 10:08:55 +08:00
- tip
2015-07-16 04:00:01 +08:00
matrix :
allow_failures :
2016-12-27 20:06:30 +08:00
- go : tip
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
2016-12-08 20:24:03 +08:00
- cd $HOME/gopath/src/gobot.io/x/gobot
2016-07-18 05:55:06 +08:00
- go get github.com/axw/gocov/gocov
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 :
2017-03-28 02:10:37 +08:00
- echo "Ensuring code is well formatted"; ! gofmt -s -d . | read
2017-03-25 19:05:10 +08:00
- bash -c 'set -e; echo "" > coverage.txt; for d in $(go list ./...); do go test -covermode=count -coverprofile=p.out $d; if [ -f p.out ]; then cat p.out >> coverage.txt; rm p.out; fi; done'
- go test -race ./...
2017-02-16 20:20:04 +08:00
after_success :
- bash <(curl -s https://codecov.io/bash)
2014-01-21 15:22:41 +08:00
branches :
except :
- gobot.io
2014-04-18 02:20:49 +08:00
- /^gobot-.*$/
2017-02-16 20:20:04 +08:00
secure : "HggklzWOwKqImvjQe1yvojCoTaUBDrOVXRjsrZaoTaKpUtmho1tpCMtKF1dbyT0T5Y68P6f9e/XyANWVeziJNZ+YmNkY+CNdNYHiNnpl8att3MuL4hpwKDPAqLK8H2G+71j3O/rBvf6oIJHtSEesR5Sbb+2fSmhNFtLrDgp5FZA="