Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
ci: Allow travis to use go install script
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
GabyCT committed Jul 22, 2019
1 parent 37c2872 commit f2e6a31
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .ci/install_go.sh
Original file line number Diff line number Diff line change
@@ -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
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@ os:
- linux-ppc64le
go_import_path: github.com/kata-containers/runtime

go:
- "1.11.x"

env:
- target_branch=$TRAVIS_BRANCH

before_install:
- ".ci/setup.sh"

before_script:
- ".ci/install_go.sh"
- ".ci/static-checks.sh"
- ".ci/versions_checker.sh"

Expand Down

0 comments on commit f2e6a31

Please sign in to comment.