hybridgroup.gobot/.travis.yml

70 lines
1.8 KiB
YAML
Raw Normal View History

2013-12-03 10:08:55 +08:00
language: go
sudo: required
dist: trusty
go_import_path: gobot.io/x/gobot
2013-12-03 10:08:55 +08:00
go:
- 1.9.6
- 1.10.2
- tip
2015-07-16 04:00:01 +08:00
matrix:
allow_failures:
- go: tip
addons:
apt:
packages:
- libgmp-dev
- build-essential
- cmake
- git
- libgtk2.0-dev
- pkg-config
- libavcodec-dev
- libavformat-dev
- libswscale-dev
- libtbb2
- libtbb-dev
- libjpeg-dev
- libpng-dev
- libtiff-dev
- libjasper-dev
- libdc1394-22-dev
- libsdl2-dev
- libsdl2-image-dev
- libsdl2-2.0.0
- libusb-dev
- xvfb
- unzip
2014-06-14 09:03:50 +08:00
before_install:
- ./travis_build_opencv.sh
- export PKG_CONFIG_PATH=$(pkg-config --variable pc_path pkg-config):$HOME/usr/lib/pkgconfig
- export INCLUDE_PATH=$HOME/usr/include:${INCLUDE_PATH}
- export LD_LIBRARY_PATH=$HOME/usr/lib:${LD_LIBRARY_PATH}
- sudo ln /dev/null /dev/raw1394
- cd $HOME/gopath/src/gobot.io/x/gobot
- go get github.com/axw/gocov/gocov
- go get -u github.com/golang/dep/cmd/dep
before_cache:
- rm -f $HOME/fresh-cache
install:
- dep ensure
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-11-15 01:23:06 +08:00
- echo "Running tests"
- make test_with_coverage
- echo "Checking that code is well-formatted"
2017-11-05 06:36:09 +08:00
- make fmt_check
after_success:
- bash <(curl -s https://codecov.io/bash) -f "../*.cov"
2014-01-21 15:22:41 +08:00
branches:
except:
- gobot.io
- /^gobot-.*$/
secure: "HggklzWOwKqImvjQe1yvojCoTaUBDrOVXRjsrZaoTaKpUtmho1tpCMtKF1dbyT0T5Y68P6f9e/XyANWVeziJNZ+YmNkY+CNdNYHiNnpl8att3MuL4hpwKDPAqLK8H2G+71j3O/rBvf6oIJHtSEesR5Sbb+2fSmhNFtLrDgp5FZA="
# Caching so the next build will be fast as possible.
cache:
timeout: 1000
directories:
- $HOME/usr