Browse Source

travis: fix GO111MODULE, import paths

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Gyuho Lee 6 years ago
parent
commit
e3cdd3ae9c
1 changed files with 16 additions and 18 deletions
  1. 16 18
      .travis.yml

+ 16 - 18
.travis.yml

@@ -1,12 +1,12 @@
 language: go
 language: go
-go_import_path: go.etcd.io/etcd/v3
+go_import_path: go.etcd.io/etcd
 
 
 sudo: required
 sudo: required
 
 
 services: docker
 services: docker
 
 
 go:
 go:
-- 1.11.4
+- 1.12.5
 - tip
 - tip
 
 
 notifications:
 notifications:
@@ -14,8 +14,6 @@ notifications:
   on_failure: never
   on_failure: never
 
 
 env:
 env:
-  global:
-  - GO111MODULE=on
   matrix:
   matrix:
   - TARGET=linux-amd64-fmt
   - TARGET=linux-amd64-fmt
   - TARGET=linux-amd64-integration-1-cpu
   - TARGET=linux-amd64-integration-1-cpu
@@ -32,13 +30,13 @@ env:
 matrix:
 matrix:
   fast_finish: true
   fast_finish: true
   allow_failures:
   allow_failures:
-  - go: 1.11.4
+  - go: 1.12.5
     env: TARGET=linux-amd64-grpcproxy
     env: TARGET=linux-amd64-grpcproxy
-  - go: 1.11.4
+  - go: 1.12.5
     env: TARGET=linux-amd64-coverage
     env: TARGET=linux-amd64-coverage
   - go: tip
   - go: tip
     env: TARGET=linux-amd64-fmt-unit-go-tip
     env: TARGET=linux-amd64-fmt-unit-go-tip
-  - go: 1.11.4
+  - go: 1.12.5
     env: TARGET=linux-386-unit
     env: TARGET=linux-386-unit
   exclude:
   exclude:
   - go: tip
   - go: tip
@@ -59,7 +57,7 @@ matrix:
     env: TARGET=linux-amd64-grpcproxy
     env: TARGET=linux-amd64-grpcproxy
   - go: tip
   - go: tip
     env: TARGET=linux-amd64-coverage
     env: TARGET=linux-amd64-coverage
-  - go: 1.11.4
+  - go: 1.12.5
     env: TARGET=linux-amd64-fmt-unit-go-tip
     env: TARGET=linux-amd64-fmt-unit-go-tip
   - go: tip
   - go: tip
     env: TARGET=linux-386-unit
     env: TARGET=linux-386-unit
@@ -67,45 +65,45 @@ matrix:
 before_install:
 before_install:
 - if [[ $TRAVIS_GO_VERSION == 1.* ]]; then docker pull gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION}; fi
 - if [[ $TRAVIS_GO_VERSION == 1.* ]]; then docker pull gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION}; fi
 
 
-install: true
-
+install:
+- go get -t -v -d ./...
 
 
 script:
 script:
  - echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}"
  - echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}"
  - >
  - >
     case "${TARGET}" in
     case "${TARGET}" in
       linux-amd64-fmt)
       linux-amd64-fmt)
-        docker run --rm -e GO111MODULE \
+        docker run --rm \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           /bin/bash -c "GOARCH=amd64 PASSES='fmt bom dep' ./test"
           /bin/bash -c "GOARCH=amd64 PASSES='fmt bom dep' ./test"
         ;;
         ;;
       linux-amd64-integration-1-cpu)
       linux-amd64-integration-1-cpu)
-        docker run --rm -e GO111MODULE \
+        docker run --rm \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           /bin/bash -c "GOARCH=amd64 CPU=1 PASSES='integration' ./test"
           /bin/bash -c "GOARCH=amd64 CPU=1 PASSES='integration' ./test"
         ;;
         ;;
       linux-amd64-integration-2-cpu)
       linux-amd64-integration-2-cpu)
-        docker run --rm -e GO111MODULE \
+        docker run --rm \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           /bin/bash -c "GOARCH=amd64 CPU=2 PASSES='integration' ./test"
           /bin/bash -c "GOARCH=amd64 CPU=2 PASSES='integration' ./test"
         ;;
         ;;
       linux-amd64-integration-4-cpu)
       linux-amd64-integration-4-cpu)
-        docker run --rm -e GO111MODULE \
+        docker run --rm \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           /bin/bash -c "GOARCH=amd64 CPU=4 PASSES='integration' ./test"
           /bin/bash -c "GOARCH=amd64 CPU=4 PASSES='integration' ./test"
         ;;
         ;;
       linux-amd64-functional)
       linux-amd64-functional)
-        docker run --rm -e GO111MODULE \
+        docker run --rm \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           /bin/bash -c "./build && GOARCH=amd64 PASSES='functional' ./test"
           /bin/bash -c "./build && GOARCH=amd64 PASSES='functional' ./test"
         ;;
         ;;
       linux-amd64-unit)
       linux-amd64-unit)
-        docker run --rm -e GO111MODULE \
+        docker run --rm \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           /bin/bash -c "GOARCH=amd64 PASSES='unit' ./test"
           /bin/bash -c "GOARCH=amd64 PASSES='unit' ./test"
         ;;
         ;;
       all-build)
       all-build)
-        docker run --rm -e GO111MODULE \
+        docker run --rm \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           /bin/bash -c "GOARCH=amd64 PASSES='build' ./test \
           /bin/bash -c "GOARCH=amd64 PASSES='build' ./test \
             && GOARCH=386 PASSES='build' ./test \
             && GOARCH=386 PASSES='build' ./test \
@@ -125,7 +123,7 @@ script:
         GOARCH=amd64 PASSES='fmt unit' ./test
         GOARCH=amd64 PASSES='fmt unit' ./test
         ;;
         ;;
       linux-386-unit)
       linux-386-unit)
-        docker run --rm -e GO111MODULE \
+        docker run --rm \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           --volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
           /bin/bash -c "GOARCH=386 PASSES='unit' ./test"
           /bin/bash -c "GOARCH=386 PASSES='unit' ./test"
         ;;
         ;;