-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
29 lines (27 loc) · 878 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: cpp
env:
- GUI=qt
- GUI=gtk
os:
- linux
- osx
compiler:
- gcc
- clang
matrix:
exclude:
- os: osx
env: GUI=gtk
allow_failures:
- os: osx
install:
- cmake --version
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; brew install qt5; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; sudo apt-get install qtbase5-dev qt5-qmake libgtk-3-dev; fi
script:
- git submodule update --init
- mkdir _build && cd _build
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$GUI" == "qt" ]]; then cmake -DCMAKE_PREFIX_PATH=$(brew --prefix qt5) -DCONFIG_QT=ON -DCONFIG_TINY=ON ..; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$GUI" == "qt" ]]; then cmake -DCONFIG_QT=ON -DCONFIG_TINY=ON .. ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$GUI" == "gtk" ]]; then cmake -DCONFIG_GTK=ON -DCONFIG_TINY=ON .. ; fi
- make VERBOSE=1