mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
8386cac8e7
From https://docs.docker.com/engine/reference/run/: ``` When the operator executes docker run --privileged, Docker will enable access to all devices on the host as well as set some configuration in AppArmor or SELinux to allow the container nearly all the same access to the host as processes running outside containers on the host. ``` Regards https://github.com/profanity-im/profanity/issues/1294
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
sudo: required
|
|
language: bash
|
|
|
|
services:
|
|
- docker # Linux tests are run in Docker containers.
|
|
|
|
addons:
|
|
homebrew:
|
|
brewfile: Brewfile.travis # mac OS dependencies.
|
|
# libsignal-protocol-c is still not in the Travis CI Homebrew snapshot, the
|
|
# line below could be removed when the snapshot has been updated to speed up
|
|
# the OSX job.
|
|
update: true
|
|
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
env: BUILD_FLAVOR=tumbleweed
|
|
- os: linux
|
|
env: BUILD_FLAVOR=debian
|
|
- os: linux
|
|
env: BUILD_FLAVOR=arch
|
|
- os: osx
|
|
env:
|
|
# Ensure that "keg-only" Homebrew versions are used.
|
|
- PKG_CONFIG_PATH="/usr/local/opt/ncurses/lib/pkgconfig:$PKG_CONFIG_PATH"
|
|
- PKG_CONFIG_PATH="/usr/local/opt/expat/lib/pkgconfig:$PKG_CONFIG_PATH"
|
|
- PKG_CONFIG_PATH="/usr/local/opt/curl/lib/pkgconfig:$PKG_CONFIG_PATH"
|
|
- PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
|
|
- PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig:$PKG_CONFIG_PATH"
|
|
|
|
before_install:
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
docker build -f Dockerfile."$BUILD_FLAVOR" -t profanity .;
|
|
fi
|
|
|
|
script:
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
docker run -it --privileged profanity ./ci-build.sh;
|
|
fi
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
./ci-build.sh;
|
|
fi
|
|
|
|
after_failure:
|
|
- cat ./config.log
|
|
- env
|