mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 16:57:18 +00:00
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:
parent
37c2872f29
commit
f2e6a31dfc
16
.ci/install_go.sh
Executable file
16
.ci/install_go.sh
Executable 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
|
@ -14,9 +14,6 @@ os:
|
|||||||
- linux-ppc64le
|
- linux-ppc64le
|
||||||
go_import_path: github.com/kata-containers/runtime
|
go_import_path: github.com/kata-containers/runtime
|
||||||
|
|
||||||
go:
|
|
||||||
- "1.11.x"
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- target_branch=$TRAVIS_BRANCH
|
- target_branch=$TRAVIS_BRANCH
|
||||||
|
|
||||||
@ -24,6 +21,7 @@ before_install:
|
|||||||
- ".ci/setup.sh"
|
- ".ci/setup.sh"
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- ".ci/install_go.sh"
|
||||||
- ".ci/static-checks.sh"
|
- ".ci/static-checks.sh"
|
||||||
- ".ci/versions_checker.sh"
|
- ".ci/versions_checker.sh"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user