mirror of
https://github.com/containers/podman.git
synced 2025-06-22 18:08:11 +08:00
Cirrus: Enable AppArmor build and test
This was specifically disabled early on in transitioning to cirrus due to an excessive number of test failures and lack of knowledge. This commit reverses the stance and unifies build and test commands across all current platforms. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
@ -17,9 +17,9 @@ set -x
|
|||||||
cd "$GOSRC"
|
cd "$GOSRC"
|
||||||
case "${OS_RELEASE_ID}-${OS_RELEASE_VER}" in
|
case "${OS_RELEASE_ID}-${OS_RELEASE_VER}" in
|
||||||
ubuntu-18)
|
ubuntu-18)
|
||||||
make install PREFIX=/usr ETCDIR=/etc "BUILDTAGS=$BUILDTAGS"
|
make install PREFIX=/usr ETCDIR=/etc
|
||||||
make test-binaries "BUILDTAGS=$BUILDTAGS"
|
make test-binaries
|
||||||
SKIP_USERNS=1 make localintegration "BUILDTAGS=$BUILDTAGS"
|
SKIP_USERNS=1 make localintegration
|
||||||
;;
|
;;
|
||||||
fedora-29) ;& # Continue to the next item
|
fedora-29) ;& # Continue to the next item
|
||||||
fedora-28) ;&
|
fedora-28) ;&
|
||||||
|
@ -199,7 +199,7 @@ install_runc_from_git(){
|
|||||||
cd "$DEST"
|
cd "$DEST"
|
||||||
ooe.sh git fetch origin --tags
|
ooe.sh git fetch origin --tags
|
||||||
ooe.sh git checkout -q "$RUNC_COMMIT"
|
ooe.sh git checkout -q "$RUNC_COMMIT"
|
||||||
ooe.sh make static BUILDTAGS="seccomp selinux"
|
ooe.sh make static BUILDTAGS="seccomp apparmor selinux"
|
||||||
sudo install -m 755 runc /usr/bin/runc
|
sudo install -m 755 runc /usr/bin/runc
|
||||||
cd $wd
|
cd $wd
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,6 @@ then
|
|||||||
ubuntu-18)
|
ubuntu-18)
|
||||||
# Always install runc on Ubuntu
|
# Always install runc on Ubuntu
|
||||||
install_runc_from_git
|
install_runc_from_git
|
||||||
envstr='export BUILDTAGS="seccomp $($GOSRC/hack/btrfs_tag.sh) $($GOSRC/hack/btrfs_installed_tag.sh) $($GOSRC/hack/ostree_tag.sh) varlink exclude_graphdriver_devicemapper"'
|
|
||||||
;;
|
;;
|
||||||
fedora-29) ;& # Continue to the next item
|
fedora-29) ;& # Continue to the next item
|
||||||
fedora-28)
|
fedora-28)
|
||||||
@ -67,11 +66,9 @@ then
|
|||||||
;& # Continue to the next item
|
;& # Continue to the next item
|
||||||
centos-7) ;&
|
centos-7) ;&
|
||||||
rhel-7)
|
rhel-7)
|
||||||
envstr='unset BUILDTAGS' # Use default from Makefile
|
|
||||||
;;
|
;;
|
||||||
*) bad_os_id_ver ;;
|
*) bad_os_id_ver ;;
|
||||||
esac
|
esac
|
||||||
X=$(echo "$envstr" | tee -a "$HOME/$ENVLIB") && eval "$X" && echo "$X"
|
|
||||||
|
|
||||||
# Do the same for golang env. vars
|
# Do the same for golang env. vars
|
||||||
go env | while read envline
|
go env | while read envline
|
||||||
|
@ -15,12 +15,9 @@ set -x
|
|||||||
cd "$GOSRC"
|
cd "$GOSRC"
|
||||||
|
|
||||||
case "${OS_RELEASE_ID}-${OS_RELEASE_VER}" in
|
case "${OS_RELEASE_ID}-${OS_RELEASE_VER}" in
|
||||||
ubuntu-18)
|
ubuntu-18) ;& # Continue to the next item
|
||||||
make install.tools "BUILDTAGS=$BUILDTAGS"
|
|
||||||
make "BUILDTAGS=$BUILDTAGS"
|
|
||||||
make test-binaries "BUILDTAGS=$BUILDTAGS"
|
|
||||||
;;
|
|
||||||
fedora-28) ;&
|
fedora-28) ;&
|
||||||
|
fedora-29) ;&
|
||||||
centos-7) ;&
|
centos-7) ;&
|
||||||
rhel-7)
|
rhel-7)
|
||||||
make install.tools
|
make install.tools
|
||||||
|
@ -16,12 +16,8 @@ clean_env
|
|||||||
set -x
|
set -x
|
||||||
cd "$GOSRC"
|
cd "$GOSRC"
|
||||||
case "${OS_RELEASE_ID}-${OS_RELEASE_VER}" in
|
case "${OS_RELEASE_ID}-${OS_RELEASE_VER}" in
|
||||||
ubuntu-18)
|
ubuntu-18) ;& # Continue to the next item
|
||||||
make install.tools "BUILDTAGS=$BUILDTAGS"
|
fedora-29) ;&
|
||||||
make localunit "BUILDTAGS=$BUILDTAGS"
|
|
||||||
make "BUILDTAGS=$BUILDTAGS"
|
|
||||||
;;
|
|
||||||
fedora-29) ;& # Continue to the next item
|
|
||||||
fedora-28) ;&
|
fedora-28) ;&
|
||||||
centos-7) ;&
|
centos-7) ;&
|
||||||
rhel-7)
|
rhel-7)
|
||||||
|
Reference in New Issue
Block a user