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 <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
Gabriela Cervantes 2019-07-22 02:07:56 -05:00
parent 37c2872f29
commit f2e6a31dfc
2 changed files with 17 additions and 3 deletions

16
.ci/install_go.sh Executable file
View File

@ -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

View File

@ -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"