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 #199

Signed-off-by: Gabriela Cervantes <[email protected]>
  • Loading branch information
GabyCT committed Jul 23, 2019
1 parent 638b83a commit e6c7cda
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 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
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,16 @@ matrix:
language: go
go_import_path: github.com/kata-containers/shim

go:
- "1.11.x"

env:
- target_branch=$TRAVIS_BRANCH

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

before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y -qq automake ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y -qq automake moreutils ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install bash; fi

install:
Expand Down

0 comments on commit e6c7cda

Please sign in to comment.