Skip to content

Commit 1399445

Browse files
committed
support go 1.16
1 parent 26e4bc7 commit 1399445

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ go:
1919
- 1.13.x
2020
- 1.14.x
2121
- 1.15.x
22+
- 1.16.x
2223

2324
jobs:
2425
allow_failures:
@@ -27,23 +28,23 @@ jobs:
2728
before_script:
2829
- make env deps-fetch
2930
- |
30-
if [[ $TRAVIS_GO_VERSION == 1.15* ]]; then
31+
if [[ $TRAVIS_GO_VERSION == 1.16* ]]; then
3132
curl -sL $CODECLIMATE > /home/travis/gopath/bin/cc-test-reporter
3233
chmod +x /home/travis/gopath/bin/cc-test-reporter
3334
cc-test-reporter before-build
3435
fi
3536
3637
script:
3738
- |
38-
if [[ $TRAVIS_GO_VERSION == 1.15* ]]; then
39+
if [[ $TRAVIS_GO_VERSION == 1.16* ]]; then
3940
make test-with-coverage
4041
else
4142
make test
4243
fi
4344
4445
after_script:
4546
- |
46-
if [[ $TRAVIS_GO_VERSION == 1.15* ]]; then
47+
if [[ $TRAVIS_GO_VERSION == 1.16* ]]; then
4748
sed -i "s|$(go list -m)/||g" c.out # https://github.com/codeclimate/test-reporter/issues/378
4849
cc-test-reporter after-build -t gocov -p $(go list -m) --exit-code $TRAVIS_TEST_RESULT
4950
fi

0 commit comments

Comments
 (0)