Browse Source

travis: remove glide, only build 1.11.x, use modules

pull/1354/head
Conner Fromknecht 1 year ago
parent
commit
2f3be2e337
No account linked to committer's email address
1 changed files with 11 additions and 9 deletions
  1. 11
    9
      .travis.yml

+ 11
- 9
.travis.yml View File

@@ -1,17 +1,19 @@
1 1
 language: go
2
+cache:
3
+  directories:
4
+    - $GOCACHE
5
+    - $GOPATH
6
+    - $GOPATH/pkg/mod
7
+    - $GOPATH/github.com/golang
8
+    - $GOPATH/gopkg.in/alecthomas
2 9
 go:
3
-  - "1.9.5"
4
-  - "1.10.1"
10
+  - "1.11.x"
5 11
 sudo: false
6 12
 install:
7
-  - GLIDE_TAG=v0.12.3
8
-  - GLIDE_DOWNLOAD="https://github.com/Masterminds/glide/releases/download/$GLIDE_TAG/glide-$GLIDE_TAG-linux-amd64.tar.gz"
9
-  - curl -L $GLIDE_DOWNLOAD | tar -xvz
10 13
   - export PATH=$PATH:$PWD/linux-amd64/
11
-  - glide install
12
-  - go install . ./cmd/...
13
-  - go get -u gopkg.in/alecthomas/gometalinter.v2
14
-  - gometalinter.v2 --install
14
+  - GO111MODULE=on go install . ./cmd/...
15
+  - GO111MODULE=off go get -u gopkg.in/alecthomas/gometalinter.v2
16
+  - GO111MODULE=off gometalinter.v2 --install
15 17
 script:
16 18
   - export PATH=$PATH:$HOME/gopath/bin
17 19
   - ./goclean.sh

Loading…
Cancel
Save