From 6d129546e300babe1284358bd43c2f41ed4d6821 Mon Sep 17 00:00:00 2001 From: Peng Tao Date: Wed, 29 Apr 2020 20:10:22 -0700 Subject: [PATCH] travis: enable linux-ppc64le Use build jobs to enable it. Fixes: #209 Signed-off-by: Peng Tao --- .travis.yml | 58 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6c52e7f93..10294e008 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,35 +3,43 @@ # SPDX-License-Identifier: Apache-2.0 # -sudo: required dist: bionic - -os: - - linux - -language: rust -rust: - - stable - -env: - - target_branch=$TRAVIS_BRANCH RUST_AGENT=yes +os: linux +language: go +go: 1.13.9 +env: target_branch=$TRAVIS_BRANCH before_install: - - "ci/setup.sh" - - "ci/install_go.sh" - - "ci/install_rust.sh" - - "ci/install_vc.sh" - - "ci/static-checks.sh" - -# need to install rust from scratch? -# still need go to download github.com/kata-containers/tests -# which is already installed? + - git remote set-branches --add origin "${TRAVIS_BRANCH}" + - git fetch + - "ci/setup.sh" +# we use install to run check agent +# so that it is easy to skip for non-amd64 platform install: - - cd ${TRAVIS_BUILD_DIR}/src/runtime && make - - cd ${TRAVIS_BUILD_DIR}/src/agent && make + - "ci/install_rust.sh" + - export PATH=$PATH:"$HOME/.cargo/bin" + - export RUST_AGENT=yes + - make -C ${TRAVIS_BUILD_DIR}/src/agent + - make -C ${TRAVIS_BUILD_DIR}/src/agent check + +before_script: + - "ci/install_go.sh" + - "ci/install_vc.sh" + - make -C ${TRAVIS_BUILD_DIR}/src/runtime + - make -C ${TRAVIS_BUILD_DIR}/src/runtime test + - sudo -E PATH=$PATH GOPATH=$GOPATH make -C ${TRAVIS_BUILD_DIR}/src/runtime test script: - - cd ${TRAVIS_BUILD_DIR}/src/runtime && make test - - cd ${TRAVIS_BUILD_DIR}/src/runtime && sudo -E PATH=$PATH GOPATH=$GOPATH make test - - cd ${TRAVIS_BUILD_DIR}/src/agent && make check + - "ci/static-checks.sh" + +jobs: + include: + - name: x86_64 test + os: linux + - name: ppc64le test + os: linux-ppc64le + install: skip + allow_failures: + - name: ppc64le test + fast_finish: true