mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-30 23:37:45 +00:00
Merge pull request #2452 from GabyCT/topic/skipvirtcontainers
ci: Do not setup virtcontainers while using podman
This commit is contained in:
@@ -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
|
||||
|
11
.ci/setup.sh
11
.ci/setup.sh
@@ -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
|
||||
|
Reference in New Issue
Block a user