travis: Enable travis ci for ppc64le

Fixes: #122

Signed-off-by: Nitesh Konkar <niteshkonkar@in.ibm.com>
This commit is contained in:
Nitesh Konkar 2018-06-29 21:15:43 +05:30
parent ae5b40ab88
commit 22f04db80d
3 changed files with 30 additions and 6 deletions

View File

@ -7,6 +7,10 @@
sudo: required
dist: trusty
os:
- linux
- linux-ppc64le
language: bash
env:
@ -20,4 +24,4 @@ before_script:
- ".ci/setup.sh"
script:
- "travis_wait .ci/run.sh"
- "travis_wait 30 .ci/run.sh"

View File

@ -0,0 +1,18 @@
#
# Copyright (c) 2018 IBM
#
# SPDX-License-Identifier: Apache-2.0
# Base Repos
BASE_URL="http://mirror.centos.org/altarch/${OS_VERSION}/os/${ARCH}/"
# Additional Repos
CENTOS_UPDATES_URL="http://mirror.centos.org/altarch/${OS_VERSION}/updates/${ARCH}/"
CENTOS_EXTRAS_URL="http://mirror.centos.org/altarch/${OS_VERSION}/extras/${ARCH}/"
CENTOS_PLUS_URL="http://mirror.centos.org/altarch/${OS_VERSION}/centosplus/${ARCH}/"
GPG_KEY_ARCH_URL="http://mirror.centos.org/altarch/7/os/ppc64le/RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le"
GPG_KEY_ARCH_FILE="RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le"

View File

@ -21,6 +21,7 @@ readonly tests_repo="github.com/kata-containers/tests"
readonly tests_repo_dir="${script_dir}/../../tests"
readonly mgr="${tests_repo_dir}/cmd/kata-manager/kata-manager.sh"
readonly RUNTIME=${RUNTIME:-kata-runtime}
readonly MACHINE_TYPE=`uname -m`
# "docker build" does not work with a VM-based runtime
readonly docker_build_runtime="runc"
@ -349,15 +350,16 @@ test_alpine()
main()
{
setup
test_fedora
test_clearlinux
test_centos
test_alpine
# Run last as EulerOS servers can be slow and we don't want to fail the
# previous tests.
test_euleros
if [ $MACHINE_TYPE != "ppc64le" ]; then
test_clearlinux
# Run last as EulerOS servers can be slow and we don't want to fail the
# previous tests.
test_euleros
fi
}
main "$@"