Skip to content

Commit 5b724c6

Browse files
committed
Updated travis build conf
1 parent ce35ba4 commit 5b724c6

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.travis.yml

+3-12
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
language: go
22

33
go:
4-
- 1.11.x
4+
- 1.12.x
55

66
env:
7-
- DEP_VERSION="0.5.0"
7+
- GO111MODULE=on
88

99
# Anything in before_script that returns a nonzero exit code will flunk the
1010
# build and immediately stop. It's sorta like having set -e enabled in bash.
@@ -13,14 +13,8 @@ before_install:
1313
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.10.2
1414
# Download the binary to bin folder in $GOPATH
1515
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
16-
# Make the binary executable
17-
- chmod +x $GOPATH/bin/dep
1816

19-
install:
20-
# Check the dependency, -skip-lock may be useful because the version are not fixed but depends
21-
# from the branch master of the libraries so they change very often
22-
- dep check -skip-vendor
23-
- dep ensure
17+
install: true
2418

2519
script:
2620
# Check if the code is formatted
@@ -34,6 +28,3 @@ script:
3428
after_success:
3529
- bash <(curl -s https://codecov.io/bash)
3630

37-
cache:
38-
directories:
39-
- $GOPATH/pkg/dep

0 commit comments

Comments
 (0)