diff options
author | Jan Pazdziora <jpazdziora@redhat.com> | 2021-04-30 14:24:12 +0200 |
---|---|---|
committer | Jan Pazdziora <jpazdziora@redhat.com> | 2021-05-08 07:51:05 +0200 |
commit | 63bea6d518f3d5d10384fa1530b805083c0f9478 (patch) | |
tree | 76d00ab42bfa36b3f25511a7174ac38bd5140f9d | |
parent | 577fb280dccf7459dd5613c88b137093e09524db (diff) | |
download | mod_authnz_pam-63bea6d518f3d5d10384fa1530b805083c0f9478.tar.gz mod_authnz_pam-63bea6d518f3d5d10384fa1530b805083c0f9478.tar.xz mod_authnz_pam-63bea6d518f3d5d10384fa1530b805083c0f9478.zip |
Workaround 1897493 / 1900021 -- test on docker with disabled seccomp, we have to move the build steps to docker run.
-rw-r--r-- | .travis.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 635bbd5..6b72d08 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,8 @@ before_script: - if test -n "$centos" ; then sed -i "s#^FROM.*#FROM centos:$centos#" tests/Dockerfile ; fi script: +- if grep -q fedora tests/Dockerfile ; then sed -i 's/^RUN/# RUN/; s%^ENTRYPOINT .*%ENTRYPOINT [ "/usr/bin/sleep", "600" ]%' tests/Dockerfile ; fi - docker build -t mod_authnz_pam -f tests/Dockerfile . -- docker run --name mod_authnz_pam --rm -d mod_authnz_pam -- docker exec mod_authnz_pam tests/run.sh +- docker run $( grep -q fedora tests/Dockerfile && echo --security-opt=seccomp:unconfined ) --name mod_authnz_pam --rm -d mod_authnz_pam +- if grep -q fedora tests/Dockerfile ; then docker exec mod_authnz_pam tests/build.sh ; docker exec mod_authnz_pam tests/config.sh ; fi +- if grep -q fedora tests/Dockerfile ; then docker exec mod_authnz_pam /usr/sbin/httpd -DFOREGROUND ; fi & docker exec mod_authnz_pam tests/run.sh |