summaryrefslogtreecommitdiff
path: root/contrib/cirrus/setup_environment.sh
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-05-27 14:24:53 -0500
committerValentin Rothberg <rothberg@redhat.com>2020-06-08 12:21:16 +0200
commitefd1422143c738ae268e4e86da05adb597c84083 (patch)
tree025e4023bbdec1ec12471f17d2a48a62e894708e /contrib/cirrus/setup_environment.sh
parent2869cce1d53aedfe2500f3d921fb901dd5994690 (diff)
downloadpodman-efd1422143c738ae268e4e86da05adb597c84083.tar.gz
podman-efd1422143c738ae268e4e86da05adb597c84083.tar.bz2
podman-efd1422143c738ae268e4e86da05adb597c84083.zip
Enable Ubuntu tests in CI
Add updates required for ubuntu and run integration tests Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'contrib/cirrus/setup_environment.sh')
-rwxr-xr-xcontrib/cirrus/setup_environment.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/cirrus/setup_environment.sh b/contrib/cirrus/setup_environment.sh
index 25b7ff941..4066b813b 100755
--- a/contrib/cirrus/setup_environment.sh
+++ b/contrib/cirrus/setup_environment.sh
@@ -39,6 +39,17 @@ done
cd "${GOSRC}/"
case "${OS_RELEASE_ID}" in
ubuntu)
+ apt-get update
+ apt-get install -y containers-common
+ sed -ie 's/^\(# \)\?apparmor_profile =.*/apparmor_profile = ""/' /etc/containers/containers.conf
+ if [[ "$OS_RELEASE_VER" == "19" ]]; then
+ apt-get purge -y --auto-remove golang*
+ apt-get install -y golang-1.13
+ ln -s /usr/lib/go-1.13/bin/go /usr/bin/go
+ fi
+ if [[ "$OS_RELEASE_VER" == "20" ]]; then
+ apt-get install -y python-is-python3
+ fi
;;
fedora)
# All SELinux distros need this for systemd-in-a-container