Browse Source

Update Travis (#178)

* add go modules cache directive in .travis.yml

* add go version 1.12 in .travis.yml

* remove outdated exports from .travis.yml
Lord Alfred 6 years ago
parent
commit
fde891a4dc
1 changed files with 6 additions and 4 deletions
  1. 6 4
      .travis.yml

+ 6 - 4
.travis.yml

@@ -4,14 +4,16 @@ go:
   - 1.9
   - 1.9
   - 1.10.x
   - 1.10.x
   - 1.11.x
   - 1.11.x
+  - 1.12.x
   - master
   - master
 
 
+cache:
+  directories:
+    - $HOME/.cache/go-build
+    - $HOME/gopath/pkg/mod
+
 install:
 install:
-  - export GO15VENDOREXPERIMENT=1
   - go get -u github.com/golang/dep/cmd/dep
   - go get -u github.com/golang/dep/cmd/dep
-    # Add Godeps dependencies to GOPATH and PATH
-  - export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace:$GOPATH"
-  - export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH"
 
 
 script:
 script:
   - ./.travis.gofmt.sh
   - ./.travis.gofmt.sh