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

Commit

Permalink
Merge pull request #200 from GabyCT/topic/addgo
Browse files Browse the repository at this point in the history
ci: Allow travis to use go install script
  • Loading branch information
GabyCT authored Jul 24, 2019
2 parents 638b83a + e6c7cda commit 61198a8
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 61198a8

Please sign in to comment.