xref: /glogg/.travis.yml (revision a374c3132161674fd8bdb699219ca38ab3207f99)
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
116f5eaa80SNicolas Bonnefon            - sourceline: ppa:beineri/opt-qt591-trusty
1273075c26SAnton Filimonov          packages:
136f5eaa80SNicolas Bonnefon            - gcc-6
146f5eaa80SNicolas Bonnefon            - g++-6
156f5eaa80SNicolas Bonnefon            - qt59base
166f5eaa80SNicolas Bonnefon            - qt59tools
176f5eaa80SNicolas Bonnefon            - qt59svg
186f5eaa80SNicolas 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:
28*a374c313SNicolas Bonnefon - '[ "$TRAVIS_OS_NAME" != osx ] || brew install qt'
29*a374c313SNicolas Bonnefon - '[ "$TRAVIS_OS_NAME" != osx ] || brew link --force qt'
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'
346f5eaa80SNicolas Bonnefon - '[ "$TRAVIS_OS_NAME" != linux ] || source /opt/qt59/bin/qt59-env.sh'
3573075c26SAnton Filimonov - qmake -v
3673075c26SAnton Filimonov
3773075c26SAnton Filimonovscript:
386f5eaa80SNicolas 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