use xvfb-run instead of starting it by hand

This commit is contained in:
Joseph Lenox 2018-06-21 23:26:00 -05:00 committed by Joseph Lenox
parent 9dcaaf8ef8
commit 2861c8aa08

View File

@ -1,14 +1,12 @@
language: generic
before_install:
- sh package/linux/travis-decrypt-key
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )& fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sh -e /etc/init.d/xvfb start; fi
script:
- bash package/linux/travis-setup.sh
- mkdir build && cd build
- cmake -DBOOST_ROOT=$BOOST_DIR -DSLIC3R_STATIC=ON ../src
- cmake --build .
- ctest .
- xvfb-run ctest .
branches:
only:
- master