diff --git a/.travis.yml b/.travis.yml index a8b0b6a8bd..66c63bd389 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/rootfs-builder/centos/config_ppc64le.sh b/rootfs-builder/centos/config_ppc64le.sh new file mode 100644 index 0000000000..455911f1a4 --- /dev/null +++ b/rootfs-builder/centos/config_ppc64le.sh @@ -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" diff --git a/tests/image_creation.sh b/tests/image_creation.sh index 5a630001ea..e6604ece38 100755 --- a/tests/image_creation.sh +++ b/tests/image_creation.sh @@ -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 "$@"