From f2e6a31dfc88988518bdb64bfcfad98984a98461 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Mon, 22 Jul 2019 02:07:56 -0500 Subject: [PATCH] ci: Allow travis to use go install script This allows travis to use the go install script instead of having a hard coded golang version at travis.yml Fixes #1903 Signed-off-by: Gabriela Cervantes --- .ci/install_go.sh | 16 ++++++++++++++++ .travis.yml | 4 +--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100755 .ci/install_go.sh diff --git a/.ci/install_go.sh b/.ci/install_go.sh new file mode 100755 index 000000000..55c3383cc --- /dev/null +++ b/.ci/install_go.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# +# Copyright (c) 2019 Intel Corporation +# +# SPDX-License-Identifier: Apache-2.0 + +set -e + +cidir=$(dirname "$0") +source "${cidir}/lib.sh" + +clone_tests_repo + +pushd "${tests_repo_dir}" +.ci/install_go.sh -p -f +popd diff --git a/.travis.yml b/.travis.yml index be6f4d739..4398e98c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,9 +14,6 @@ os: - linux-ppc64le go_import_path: github.com/kata-containers/runtime -go: - - "1.11.x" - env: - target_branch=$TRAVIS_BRANCH @@ -24,6 +21,7 @@ before_install: - ".ci/setup.sh" before_script: + - ".ci/install_go.sh" - ".ci/static-checks.sh" - ".ci/versions_checker.sh"