2014-11-02 06:55:46 -05:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
language: cpp
|
2015-10-15 14:28:50 -04:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2014-11-02 06:55:46 -05:00
|
|
|
install:
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq update; fi
|
2015-10-15 14:56:39 -04:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq install cmake qtbase5-dev libqt5x11extras5-dev qttools5-dev qttools5-dev-tools libgcrypt20-dev zlib1g-dev libxtst-dev xvfb; fi
|
2014-11-02 06:55:46 -05:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
|
2015-09-12 08:43:37 -04:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew ls | grep -wq cmake || brew install cmake; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew ls | grep -wq qt5 || brew install qt5; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew ls | grep -wq libgcrypt || brew install libgcrypt; fi
|
2015-09-12 08:07:57 -04:00
|
|
|
before_script:
|
2015-10-15 14:58:00 -04:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then CMAKE_ARGS="-DCMAKE_PREFIX_PATH=/usr/local/opt/qt5"; fi
|
2015-09-12 08:07:57 -04:00
|
|
|
- mkdir build && pushd build
|
2014-11-02 06:55:46 -05:00
|
|
|
script:
|
2015-10-15 14:58:00 -04:00
|
|
|
- cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_GUI_TESTS=ON $CMAKE_ARGS ..
|
2014-11-02 06:55:46 -05:00
|
|
|
- make
|
2015-05-14 14:46:59 -04:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then make test ARGS+="-E testgui --output-on-failure"; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then xvfb-run -a --server-args="-screen 0 800x600x24" make test ARGS+="-R testgui --output-on-failure"; fi
|
2015-09-12 09:39:21 -04:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then make test ARGS+="--output-on-failure"; fi
|