2014-11-02 06:55:46 -05:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
language: cpp
|
|
|
|
install:
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq update; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq install cmake libqt4-dev libgcrypt11-dev zlib1g-dev libxtst-dev; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
|
2015-09-12 17:35:59 -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 qt || brew install qt; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew ls | grep -wq libgcrypt || brew install libgcrypt; fi
|
2014-11-02 06:55:46 -05:00
|
|
|
before_script: mkdir build && pushd build
|
|
|
|
script:
|
2014-11-04 12:51:46 -05:00
|
|
|
- cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_GUI_TESTS=ON ..
|
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 17:35:59 -04:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then make test ARGS+="--output-on-failure"; fi
|