-
Notifications
You must be signed in to change notification settings - Fork 50
/
.travis.yml
60 lines (51 loc) · 1.67 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
go_import_path: github.com/codedellemc/libstorage
language: go
# the order below is important as the first value is grok'd by the
# Makefile as the default version of Go used to build the project
go:
- 1.8.3
- 1.6.3
- 1.7.5
- tip
os:
- linux
env:
- TRAVIS_GOARCH=amd64 COVERAGE_ENABLED=1
- TRAVIS_GOARCH=arm
- TRAVIS_GOARCH=arm64
- VFS_INSTANCEID_USE_FIELDS=true
matrix:
fast_finish: true
allow_failures:
- go: 1.6.3
- go: 1.7.5
- go: tip
exclude:
- go: 1.6.3
env: VFS_INSTANCEID_USE_FIELDS=true
- go: 1.7.5
env: VFS_INSTANCEID_USE_FIELDS=true
- go: tip
env: VFS_INSTANCEID_USE_FIELDS=true
before_install:
- export GOARCH="${TRAVIS_GOARCH:-amd64}"
- go env
- if [ "$COVERAGE_ENABLED" = "1" ] && [ "$TRAVIS_GO_VERSION" = "$COVERED_GO_VERSION" ]; then echo coverage enabled; fi
- git config --global 'url.https://gopkg.in/yaml.v1.insteadof' 'https://gopkg.in/yaml.v1/'
- git config --global 'url.https://gopkg.in/yaml.v2.insteadof' 'https://gopkg.in/yaml.v2/'
- git config --global 'url.https://gopkg.in/fsnotify.v1.insteadof' 'https://gopkg.in/fsnotify.v1/'
- git config --global 'url.https://github.com/.insteadof' 'git://github.com/'
- git config --global 'url.https://github.com/.insteadof' '[email protected]:'
- make -C api version
- make vendor
script:
- make -j build
- if [ "$GOARCH" = "amd64" ] && [ "$TRAVIS_GO_VERSION" = "$COVERED_GO_VERSION" ]; then make test; fi
after_success:
- if [ "$GOARCH" = "amd64" ] && [ "$COVERAGE_ENABLED" = "1" ] && [ "$TRAVIS_GO_VERSION" = "$COVERED_GO_VERSION" ]; then make cover; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8