forked from aws/aws-xray-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (52 loc) · 1.42 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
language: go
go_import_path: github.com/aws/aws-xray-sdk-go
sudo: required
go:
- "1.9"
- "1.10"
- "1.11"
- "1.12"
- "1.13"
- "1.14"
- "tip"
notifications:
email:
recipients:
on_success: never
on_failure: always
env:
- DEP_VERSION="0.5.1" GO111MODULE="on"
before_install:
- echo $TRAVIS_GO_VERSION
- if [ $TRAVIS_GO_VERSION == "1.9" ] ||
[ $TRAVIS_GO_VERSION == "1.10" ]; then
export DEP_MANAGEMENT_TOOL="DEP";
else
export DEP_MANAGEMENT_TOOL="MODULE";
fi
- echo $DEP_MANAGEMENT_TOOL
- if [ $DEP_MANAGEMENT_TOOL == "DEP" ]; then
curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep;
chmod +x $GOPATH/bin/dep;
fi
install:
- if [ $DEP_MANAGEMENT_TOOL == "DEP" ]; then
dep ensure;
else
go mod download;
fi
# Only bother running lints on the latest version. Some of the linters fail to install on older versions of go.
- if [ $TRAVIS_GO_VERSION == "1.14" ]; then
go get github.com/golangci/golangci-lint/cmd/[email protected];
fi
script:
- make test-with-race
# We are in the process of resolving all the lint warnings for x-ray-sdk-go. Still run the linter to expose these
# and resolve to clean these up.
- if [ $TRAVIS_GO_VERSION == "1.14" ]; then
make golangci-lint || true;
fi
matrix:
allow_failures:
- go: tip