Merge pull request #2452 from GabyCT/topic/skipvirtcontainers

ci: Do not setup virtcontainers while using podman
This commit is contained in:
GabyCT
2020-02-11 16:14:56 -06:00
committed by GitHub
2 changed files with 11 additions and 5 deletions

View File

@@ -7,5 +7,8 @@ set -e
cidir=$(dirname "$0")
source "${cidir}/lib.sh"
export CI_JOB="${CI_JOB:-default}"
run_go_test
if [ "${CI_JOB}" != "PODMAN" ]; then
run_go_test
fi

View File

@@ -8,6 +8,7 @@ set -e
cidir=$(dirname "$0")
source "${cidir}/lib.sh"
export CI_JOB="${CI_JOB:-default}"
clone_tests_repo
@@ -15,8 +16,10 @@ pushd "${tests_repo_dir}"
.ci/setup.sh
popd
echo "Setup virtcontainers environment"
chronic sudo -E PATH=$PATH bash -c "${cidir}/../virtcontainers/utils/virtcontainers-setup.sh"
if [ "${CI_JOB}" != "PODMAN" ]; then
echo "Setup virtcontainers environment"
chronic sudo -E PATH=$PATH bash -c "${cidir}/../virtcontainers/utils/virtcontainers-setup.sh"
echo "Install virtcontainers"
make -C "${cidir}/../virtcontainers" && chronic sudo make -C "${cidir}/../virtcontainers" install
echo "Install virtcontainers"
make -C "${cidir}/../virtcontainers" && chronic sudo make -C "${cidir}/../virtcontainers" install
fi