2020-03-30 09:17:42 -04:00
|
|
|
dist: bionic
|
2019-06-04 07:45:17 -04:00
|
|
|
language: bash
|
|
|
|
|
2019-04-13 15:51:20 -04:00
|
|
|
services:
|
2019-06-04 07:45:17 -04:00
|
|
|
- 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"
|
2020-03-23 06:24:57 -04:00
|
|
|
- PKG_CONFIG_PATH="/usr/local/opt/sqlite/lib/pkgconfig:$PKG_CONFIG_PATH"
|
2019-04-13 15:51:20 -04:00
|
|
|
|
|
|
|
before_install:
|
2020-03-30 12:51:45 -04:00
|
|
|
- >
|
|
|
|
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
|
|
# Ensure that Travis uses the latest version of Docker.
|
|
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
|
|
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
|
|
|
|
docker build -f Dockerfile."$BUILD_FLAVOR" -t profanity .
|
2019-06-04 07:45:17 -04:00
|
|
|
fi
|
2019-04-13 15:51:20 -04:00
|
|
|
|
|
|
|
script:
|
2019-06-04 07:45:17 -04:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
2020-03-30 09:19:10 -04:00
|
|
|
docker run -it profanity ./ci-build.sh;
|
2019-06-04 07:45:17 -04:00
|
|
|
fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
2020-02-14 06:50:52 -05:00
|
|
|
./ci-build.sh;
|
2019-06-04 07:45:17 -04:00
|
|
|
fi
|
|
|
|
|
|
|
|
after_failure:
|
|
|
|
- cat ./config.log
|
|
|
|
- env
|