xref: /glogg/.travis.yml (revision 732308b3a6635dc95cbd6b6f5e067b954ea0ffed)
1language: cpp
2
3matrix:
4  include:
5    - os: linux
6      compiler: gcc
7      addons:
8        apt:
9          sources:
10            - ubuntu-toolchain-r-test
11          packages:
12            - gcc-5
13            - g++-5
14    - os: osx
15      compiler: clang
16
17
18
19before_install:
20 - '[ "$TRAVIS_OS_NAME" != linux ] || sudo add-apt-repository -y ppa:beineri/opt-qt562'
21 - '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-get -qy update'
22 - '[ "$TRAVIS_OS_NAME" != osx   ] || brew update'
23
24install:
25 - '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-get -qy install qt56base qt56tools qt56svg'
26 - '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-get -qy install libboost-program-options-dev'
27 - '[ "$TRAVIS_OS_NAME" != osx ] || brew install qt5'
28 - '[ "$TRAVIS_OS_NAME" != osx ] || brew link --force qt5'
29
30before_script:
31  - '[[ "$TRAVIS_OS_NAME" != linux || "$CXX" != g++     ]] || export QMAKESPEC=linux-g++'
32  - '[[ "$TRAVIS_OS_NAME" != osx   || "$CXX" != clang++ ]] || export QMAKESPEC=macx-clang'
33  - '[ "$TRAVIS_OS_NAME" != linux ] || source /opt/qt56/bin/qt56-env.sh'
34  - qmake -v
35
36script:
37 - '[ "$TRAVIS_OS_NAME" != linux ] || qmake QMAKE_CXX=g++-5 glogg.pro'
38 - '[ "$TRAVIS_OS_NAME" != osx ] || qmake glogg.pro'
39 - make
40