xref: /glogg/.travis.yml (revision 6f5eaa808c6ed209d74f765babf09ca24d22e06b)
173075c26SAnton Filimonovlanguage: cpp
273075c26SAnton Filimonov
373075c26SAnton Filimonovmatrix:
473075c26SAnton Filimonov  include:
573075c26SAnton Filimonov    - os: linux
673075c26SAnton Filimonov      compiler: gcc
773075c26SAnton Filimonov      addons:
873075c26SAnton Filimonov        apt:
973075c26SAnton Filimonov          sources:
1073075c26SAnton Filimonov            - ubuntu-toolchain-r-test
11*6f5eaa80SNicolas Bonnefon            - sourceline: ppa:beineri/opt-qt591-trusty
1273075c26SAnton Filimonov          packages:
13*6f5eaa80SNicolas Bonnefon            - gcc-6
14*6f5eaa80SNicolas Bonnefon            - g++-6
15*6f5eaa80SNicolas Bonnefon            - qt59base
16*6f5eaa80SNicolas Bonnefon            - qt59tools
17*6f5eaa80SNicolas Bonnefon            - qt59svg
18*6f5eaa80SNicolas Bonnefon            - libboost-program-options-dev
1973075c26SAnton Filimonov    - os: osx
2073075c26SAnton Filimonov      compiler: clang
2173075c26SAnton Filimonov
2273075c26SAnton Filimonov
2373075c26SAnton Filimonov
2473075c26SAnton Filimonovbefore_install:
2573075c26SAnton Filimonov - '[ "$TRAVIS_OS_NAME" != osx   ] || brew update'
2673075c26SAnton Filimonov
2773075c26SAnton Filimonovinstall:
2873075c26SAnton Filimonov - '[ "$TRAVIS_OS_NAME" != osx ] || brew install qt5'
2973075c26SAnton Filimonov - '[ "$TRAVIS_OS_NAME" != osx ] || brew link --force qt5'
3073075c26SAnton Filimonov
3173075c26SAnton Filimonovbefore_script:
3273075c26SAnton Filimonov - '[[ "$TRAVIS_OS_NAME" != linux || "$CXX" != g++     ]] || export QMAKESPEC=linux-g++'
3373075c26SAnton Filimonov - '[[ "$TRAVIS_OS_NAME" != osx   || "$CXX" != clang++ ]] || export QMAKESPEC=macx-clang'
34*6f5eaa80SNicolas Bonnefon - '[ "$TRAVIS_OS_NAME" != linux ] || source /opt/qt59/bin/qt59-env.sh'
3573075c26SAnton Filimonov - qmake -v
3673075c26SAnton Filimonov
3773075c26SAnton Filimonovscript:
38*6f5eaa80SNicolas Bonnefon - '[ "$TRAVIS_OS_NAME" != linux ] || qmake QMAKE_CXX=g++-6 glogg.pro'
3973075c26SAnton Filimonov - '[ "$TRAVIS_OS_NAME" != osx ] || qmake glogg.pro'
4073075c26SAnton Filimonov - make
41