From cfead00a9dadd8f5354e028e01747d7e1aca3a38 Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Tue, 23 Apr 2019 10:39:45 -0500 Subject: [PATCH] ci: don't run vm-factory tets in snap CI vm-factory tests are not working in the snap CI, skip them to make the snap CI happy again. see https://github.com/kata-containers/tests/issues/1495 fixes #442 Signed-off-by: Julio Montes --- .ci/run.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.ci/run.sh b/.ci/run.sh index 14860612bb..64695cde10 100755 --- a/.ci/run.sh +++ b/.ci/run.sh @@ -13,8 +13,25 @@ cidir=$(dirname "$0") source "${cidir}/lib.sh" source /etc/os-release +SNAP_CI="${SNAP_CI:-false}" + pushd "${tests_repo_dir}" -.ci/run.sh + +if [ "$SNAP_CI" == "true" ] && [ "$ID" == "ubuntu" ]; then + export RUNTIME="kata-runtime" + export CI_JOB="${CI_JOB:-default}" + + echo "INFO: Running checks" + sudo -E PATH="$PATH" bash -c "make check" + + echo "INFO: Running only supported tests: https://github.com/kata-containers/tests/issues/1495" + sudo -E PATH="$PATH" bash -c \ + "make functional docker crio docker-compose network netmon \ + docker-stability oci openshift kubernetes swarm \ + entropy ramdisk shimv2 tracing" +else + .ci/run.sh +fi popd # This script will execute packaging tests suite