2016-07-05 14:40:05 +00:00
|
|
|
sudo: required
|
2019-05-13 01:58:22 +00:00
|
|
|
dist: xenial
|
2016-06-30 00:38:41 +00:00
|
|
|
language: cpp
|
|
|
|
compiler:
|
|
|
|
- clang
|
2016-09-11 04:06:14 +00:00
|
|
|
- gcc
|
2016-07-25 09:34:46 +00:00
|
|
|
os:
|
2016-07-26 12:19:23 +00:00
|
|
|
- linux
|
2016-07-12 12:52:11 +00:00
|
|
|
cache: ccache
|
2016-06-30 00:38:41 +00:00
|
|
|
git:
|
|
|
|
depth: 3
|
2019-05-13 02:05:40 +00:00
|
|
|
services:
|
|
|
|
- xvfb
|
2016-07-05 14:40:05 +00:00
|
|
|
before_install:
|
2016-09-11 03:39:07 +00:00
|
|
|
- sudo apt-get update -qq
|
2019-05-13 01:57:12 +00:00
|
|
|
# trusty
|
2019-05-13 02:21:52 +00:00
|
|
|
# - sudo apt-get install -qq bsdtar python-dev libpcre3-dev libssl-dev zlib1g-dev libc6-dev libpng12-dev libjpeg-dev libtiff5-dev libmng-dev libcups2-dev libfreetype6-dev libfontconfig1-dev libicu-dev libglib2.0-dev libdbus-1-dev unixodbc-dev libpq-dev libpqtypes-dev libmysqld-dev libaio-dev libwrap0-dev libsqlite3-dev xorg-dev
|
2019-05-13 01:57:12 +00:00
|
|
|
# xenial
|
2019-05-13 02:24:20 +00:00
|
|
|
- sudo apt-get install -qq bsdtar python-dev libpcre3-dev libssl-dev zlib1g-dev libc6-dev libpng-dev libjpeg-dev libtiff-dev libmng-dev libcups2-dev libfreetype6-dev libfontconfig1-dev libicu-dev libglib2.0-dev libdbus-1-dev unixodbc-dev libpq-dev libpqtypes-dev libmysqld-dev libaio-dev libwrap0-dev liblz4-dev libsqlite3-dev xorg-dev
|
2019-05-13 15:04:24 +00:00
|
|
|
# both trusty and xenial offer old ninja-build which cannot resolve conflicts in generated files
|
2019-05-13 02:12:48 +00:00
|
|
|
- wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip
|
|
|
|
- bsdtar xf ninja-linux.zip
|
2016-06-30 16:00:25 +00:00
|
|
|
before_script:
|
2019-05-13 02:10:33 +00:00
|
|
|
# use downloaded ninja
|
|
|
|
- export PATH="$(pwd):${PATH}"
|
2019-05-13 15:04:24 +00:00
|
|
|
# for GUI access on trusty, e.g. QApplication requires it
|
2019-05-13 02:05:40 +00:00
|
|
|
# - export DISPLAY=:99.0
|
|
|
|
# - sh -e /etc/init.d/xvfb start
|
|
|
|
# - sleep 3
|
2016-06-30 00:38:41 +00:00
|
|
|
script:
|
2016-11-11 20:46:09 +00:00
|
|
|
- mkdir build && cd build
|
2019-05-07 19:07:50 +00:00
|
|
|
- if [ "$CXX" == "clang++" ];then cmake ../ -GNinja -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=TRUE -DKATIE_UTILS=ON -Wno-dev ;fi
|
|
|
|
- if [ "$CXX" == "g++" ];then cmake ../ -GNinja -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=TRUE -DKATIE_UTILS=ON -DKATIE_ALLINONE=ON -Wno-dev ;fi
|
2016-10-08 00:06:15 +00:00
|
|
|
- ninja
|
|
|
|
# the tests/benchmarks take more then 1-hour and Travis times out,
|
2019-05-13 02:21:52 +00:00
|
|
|
# despite the documentaiton for the service claiming the timeout is longer
|