Run docker with all privileges.

This commit is contained in:
Matthieu Gautier 2018-11-29 12:30:28 +01:00
parent 92d637ad99
commit 9679c01254
2 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,7 @@ script:
else else
docker build -t kiwix/build -f travis/Dockerfile . docker build -t kiwix/build -f travis/Dockerfile .
fi fi
docker run -e PLATFORM -e NIGHTLY_DATE -e TRAVIS_EVENT_TYPE -e TRAVIS_BUILD_DIR -e DESKTOP_ONLY -e TRAVIS_TAG --device /dev/fuse --cap-add ALL kiwix/build docker run -e PLATFORM -e NIGHTLY_DATE -e TRAVIS_EVENT_TYPE -e TRAVIS_BUILD_DIR -e DESKTOP_ONLY -e TRAVIS_TAG --device /dev/fuse --cap-add ALL --privileged kiwix/build
else else
travis/compile_all.py travis/compile_all.py
fi fi

View File

@ -214,6 +214,7 @@ class FlatpakBuilder:
try: try:
with open(log, 'r') as f: with open(log, 'r') as f:
print(f.read()) print(f.read())
raise StopBuild()
except: except:
pass pass
@ -229,6 +230,7 @@ class FlatpakBuilder:
try: try:
with open(log, 'r') as f: with open(log, 'r') as f:
print(f.read()) print(f.read())
raise StopBuild()
except: except:
pass pass