forked from aws/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (62 loc) · 1.32 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
61
62
63
64
65
66
67
68
69
language: go
sudo: required
os:
- linux
- osx
go:
- 1.5.x
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x
- 1.13.x
- 1.14.x
- tip
matrix:
allow_failures:
- go: tip
exclude:
# OSX 1.6.4 is not present in travis.
# https://github.com/travis-ci/travis-ci/issues/10309
- go: 1.6.x
os: osx
- go: 1.5.x
os: osx
include:
- os: windows
go: 1.12.x
- os: windows
go: 1.13.x
- os: windows
go: 1.14.x
- os: windows
go: tip
before_install:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install make; fi
script:
- if [ -z $(go env GOMOD) ]; then
if [ "$TRAVIS_GO_VERSION" == "1.12.x" ] ||
[ "$TRAVIS_GO_VERSION" == "1.11.x" ] ||
[ "$TRAVIS_GO_VERSION" == "1.10.x" ]; then
make get-deps-x-tests;
fi;
make get-deps;
fi;
if [ "$TRAVIS_GO_VERSION" == "tip" ] ||
[ "$TRAVIS_GO_VERSION" == "1.14.x" ] ||
[ "$TRAVIS_GO_VERSION" == "1.13.x" ]; then
if [ "$TRAVIS_OS_NAME" = "windows" ]; then
make unit-no-verify;
else
make get-deps-verify;
make ci-test;
fi
else
make unit-old-go-race-cover;
fi
branches:
only:
- master