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 <julio.montes@intel.com>
This commit is contained in:
Julio Montes 2019-04-23 10:39:45 -05:00
parent 8a9cc94498
commit cfead00a9d

View File

@ -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