Enable GO111MODULE in Travis config
authorMikael Berthe <mikael@lilotux.net>
Sat, 29 Sep 2018 12:40:01 +0200
changeset 240 7c3e7b53cbd3
parent 239 605a00e9d1ab
child 241 e77dad242f4c
Enable GO111MODULE in Travis config
.travis.yml
README.md
--- a/.travis.yml	Sat Sep 29 12:24:43 2018 +0200
+++ b/.travis.yml	Sat Sep 29 12:40:01 2018 +0200
@@ -1,6 +1,5 @@
 language: go
 go:
-- "1.9"
 - "1.10"
 - "1.11"
 - master
@@ -11,13 +10,6 @@
 branches:
   only:
   - master
-install:
-- go get golang.org/x/net/html
-- go get github.com/spf13/cobra
-- go get github.com/spf13/viper
-- go get github.com/McKael/madon
-- go get github.com/ghodss/yaml
-- go get github.com/pkg/errors
-- go get github.com/kr/text
-- go get github.com/mattn/go-isatty
-- go get github.com/stretchr/testify/assert
+env:
+  - GO111MODULE=on
+install: true
--- a/README.md	Sat Sep 29 12:24:43 2018 +0200
+++ b/README.md	Sat Sep 29 12:40:01 2018 +0200
@@ -25,7 +25,7 @@
 madonctl now uses Go modules introduced with Go v1.11.
 
 You should still be able to build it "the old way" with an up-to-date release
-of Go 1.9/1.10/1.11+ with:
+of 1.10+ with:
 
     go get -u github.com/McKael/madonctl
 
@@ -34,13 +34,13 @@
 
 Alternatively, with Go >= 1.11:
 
-    git clone git clone https://github.com/McKael/madonctl
+    git clone https://github.com/McKael/madonctl
     cd madonctl
     go build    # (or go install)
 
 and you should be able to use `madonctl`.
 
-Travis automated testing is run for Go versions 1.9 - 1.11.
+Travis automated testing is run for Go versions 1.10 - 1.11.
 
 ## Usage