annotate .travis.yml @ 1976:810a0b8f5472 c++14

Requiring c++14 is not going to work for Travis (because we want to support a Qt version too old to know about the c++14 config flag) or for our AppImage build (because we want to run on distros to old to support the relevant gcc ABI). So instead we try to confine the C++ standard selection to one place (config/noconfig) and revert to c++11 if the compiler is too old to know about c++14. All of the actual SV code remains c++11, and we assume we build against an older version of capnproto when we want to perform a c++11 build.
author Chris Cannam
date Fri, 31 Aug 2018 13:41:27 +0100
parents 18fb91db5311
children 34cb861994a2
rev   line source
Chris@1727 1 language:
Chris@1727 2 - cpp
Chris@1727 3
Chris@1750 4 matrix:
Chris@1750 5 include:
Chris@1971 6 - os: osx
Chris@1971 7 osx_image: xcode9
Chris@1750 8 - os: linux
Chris@1750 9 dist: trusty
Chris@1942 10 sudo: required
Chris@1971 11 addons:
Chris@1971 12 apt:
Chris@1971 13 sources:
Chris@1971 14 - ubuntu-toolchain-r-test
Chris@1971 15 packages:
Chris@1976 16 - libbz2-dev libfftw3-dev libfishsound1-dev libid3tag0-dev liblo-dev liblrdf0-dev libmad0-dev liboggz2-dev libpulse-dev libsamplerate-dev libsndfile-dev libsord-dev libxml2-utils portaudio19-dev qt5-default libqt5svg5-dev raptor-utils librubberband-dev autoconf libtool git mlton
Chris@1727 17
Chris@1727 18 before_install:
Chris@1751 19 - if [[ "$TRAVIS_OS_NAME" = "osx" ]] ; then brew update ; fi
Chris@1727 20 - if [[ "$TRAVIS_OS_NAME" = "osx" ]] ; then brew install polyml ; fi
Chris@1727 21 - if [[ "$TRAVIS_OS_NAME" = "osx" ]] ; then brew install qt5 ; fi
Chris@1727 22 - if [[ "$TRAVIS_OS_NAME" = "osx" ]] ; then export PATH=$PATH:/usr/local/opt/qt5/bin ; fi
Chris@1727 23 - ( cd ../ ; git clone https://github.com/sandstorm-io/capnproto )
Chris@1976 24 - ( cd ../capnproto/ ; git checkout v0.6.0 )
Chris@1971 25 - ( cd ../capnproto/c++ ; autoreconf -i )
Chris@1727 26 - ( cd ../capnproto/c++ ; ./configure && make && sudo make install )
Chris@1730 27
Chris@1730 28 before_script:
Chris@1808 29 - if [[ "$TRAVIS_OS_NAME" = "linux" ]] ; then ./configure ; else ./repoint install && qmake -r sonic-visualiser.pro ; fi
Chris@1730 30
Chris@1727 31 script:
Chris@1730 32 - make -j3
Chris@1883 33 - if [[ "$TRAVIS_OS_NAME" = "linux" ]] ; then ./deploy/linux/deploy-appimage.sh ; fi