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