Skip to content

Commit

Permalink
Merge pull request kata-containers#614 from GabyCT/topic/addinstallgo
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 23, 2019
2 parents b634b06 + cf20c9b commit 1922db5
Show file tree
Hide file tree
Showing 2 changed files with 18 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
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,17 @@ os:
language: go
go_import_path: github.com/kata-containers/agent

go:
- "1.11.x"

env:
- target_branch=$TRAVIS_BRANCH

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

before_install:
- sudo apt-get update -qq
- sudo apt-get install -y -qq automake
- sudo apt-get install -y moreutils

install:
- cd ${TRAVIS_BUILD_DIR} && make
Expand Down

0 comments on commit 1922db5

Please sign in to comment.