From e2f5d569a011365a8f6d8fee737c10e01a8eb3f0 Mon Sep 17 00:00:00 2001 From: Nicolas Ruflin Date: Wed, 13 Feb 2019 08:17:24 +0100 Subject: [PATCH] Change travis.yml to use TRAVIS_GO_VERSION (#10589) This change is based on https://travis-ci.community/t/go-version-as-environment-variable-stopped-working/2171 --- .travis.yml | 54 ++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2ea3ff872af5..3e9b8b276117 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ env: # Cross-compile for amd64 only to speed up testing. - GOX_FLAGS="-arch amd64" - DOCKER_COMPOSE_VERSION=1.21.0 - - GO_VERSION="1.11.5" + - TRAVIS_GO_VERSION=$(cat .go-version) # Newer versions of minikube fail on travis, see: https://github.com/kubernetes/minikube/issues/2704 - TRAVIS_MINIKUBE_VERSION=v0.25.2 @@ -22,129 +22,129 @@ jobs: # General checks - os: linux env: TARGETS="check" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: check # Filebeat - os: linux env: TARGETS="-C filebeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test - os: osx env: TARGETS="TEST_ENVIRONMENT=0 -C filebeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test - os: linux env: TARGETS="-C x-pack/filebeat testsuite" - go: 1.11.5 + go: $(GO_VERSION) stage: test # Heartbeat - os: linux env: TARGETS="-C heartbeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test - os: osx env: TARGETS="TEST_ENVIRONMENT=0 -C heartbeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test # Auditbeat - os: linux env: TARGETS="-C auditbeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test - os: osx env: TARGETS="TEST_ENVIRONMENT=0 -C auditbeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test - os: linux env: TARGETS="-C auditbeat crosscompile" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test - os: linux env: TARGETS="-C x-pack/auditbeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test # Libbeat - os: linux env: TARGETS="-C libbeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test - os: linux env: TARGETS="-C libbeat crosscompile" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test - os: linux env: STRESS_TEST_OPTIONS="-timeout=20m -race -v -parallel 1" TARGETS="-C libbeat stress-tests" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test - os: linux env: TARGETS="-C x-pack/libbeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test # Metricbeat - os: linux env: TARGETS="-C metricbeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test - os: osx env: TARGETS="TEST_ENVIRONMENT=0 -C metricbeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test - os: linux env: TARGETS="-C metricbeat crosscompile" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test - os: linux env: TARGETS="-C x-pack/metricbeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test # Packetbeat - os: linux env: TARGETS="-C packetbeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test # Winlogbeat - os: linux env: TARGETS="-C winlogbeat crosscompile" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test # Functionbeat - os: linux env: TARGETS="-C x-pack/functionbeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test - os: osx env: TARGETS="TEST_ENVIRONMENT=0 -C x-pack/functionbeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test # Journalbeat - os: linux env: TARGETS="-C journalbeat testsuite" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test # Generators - os: linux env: TARGETS="-C generator/metricbeat test" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test - os: linux env: TARGETS="-C generator/beat test" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test # Docs - os: linux env: TARGETS="docs" - go: 1.11.5 + go: $TRAVIS_GO_VERSION stage: test # Kubernetes