ci: travis: enable ptrace capabilities to our docker runs
authorStefan Schmidt <s.schmidt@samsung.com>
Wed, 8 Jan 2020 09:50:32 +0000 (10:50 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 8 Jan 2020 21:52:39 +0000 (06:52 +0900)
ASAN leak sanitizer needs ptrace capabilities to run. It seems the
removal sudo true brings up this issue for us.

https://github.com/google/sanitizers/issues/764
https://github.com/travis-ci/travis-ci/issues/9033

It fixes the recent breaks in our ASAN enabled job durign our cron
builds.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D11041

.travis.yml

index 1af7930..9da6695 100644 (file)
@@ -95,7 +95,7 @@ before_script:
       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
         docker pull stefanschmidt1/ci-support-files:$DISTRO
         docker version
-        docker run --cidfile $HOME/cid -t -d -v `pwd`:/src -v $HOME/.ccache:/root/.ccache -w /src stefanschmidt1/ci-support-files:$DISTRO bash
+        docker run --cap-add SYS_PTRACE --cidfile $HOME/cid -t -d -v `pwd`:/src -v $HOME/.ccache:/root/.ccache -w /src stefanschmidt1/ci-support-files:$DISTRO bash
       fi
   - |
       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" == "" ]]; then