-
-
Notifications
You must be signed in to change notification settings - Fork 112
/
Copy path.travis.yml
43 lines (36 loc) · 1.05 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
language: go
os:
- linux
- osx
go:
- 1.4
- 1.5.x
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- "1.10.x"
- tip
matrix:
exclude:
- os: osx
go: 1.4
- os: osx
go: 1.5.x
- os: osx
go: 1.6.x
before_install:
- if [[ $TRAVIS_GO_VERSION == 1.9* ]]; then go get github.com/axw/gocov/gocov github.com/mattn/goveralls; fi
# - sudo add-apt-repository -y ppa:kubuntu-ppa/backports
# - sudo apt-get update -qq
# - sudo apt-get install libcv-dev libopencv-dev libopencv-contrib-dev libhighgui-dev libopencv-photo-dev libopencv-imgproc-dev libopencv-stitching-dev libopencv-superres-dev libopencv-ts-dev libopencv-videostab-dev
install:
# It's complicated to get OpenCV built on each platform, so exclude the OpenCV-based detector and its dependencies this way.
- go get -t $(go list ./... | grep -v gocv | xargs)
script:
- go test -v -tags ci ./...
- if [[ $TRAVIS_GO_VERSION == 1.9* ]]; then $GOPATH/bin/goveralls -service=travis-ci; fi
notifications:
email:
on_success: change
on_failure: always