comparison .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
comparison
equal deleted inserted replaced
1975:18fb91db5311 1976:810a0b8f5472
11 addons: 11 addons:
12 apt: 12 apt:
13 sources: 13 sources:
14 - ubuntu-toolchain-r-test 14 - ubuntu-toolchain-r-test
15 packages: 15 packages:
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 g++-4.9 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
17 17
18 before_install: 18 before_install:
19 - if [[ "$TRAVIS_OS_NAME" = "osx" ]] ; then brew update ; fi 19 - if [[ "$TRAVIS_OS_NAME" = "osx" ]] ; then brew update ; fi
20 - if [[ "$TRAVIS_OS_NAME" = "osx" ]] ; then brew install polyml ; fi 20 - if [[ "$TRAVIS_OS_NAME" = "osx" ]] ; then brew install polyml ; fi
21 - if [[ "$TRAVIS_OS_NAME" = "osx" ]] ; then brew install qt5 ; fi 21 - if [[ "$TRAVIS_OS_NAME" = "osx" ]] ; then brew install qt5 ; fi
22 - if [[ "$TRAVIS_OS_NAME" = "osx" ]] ; then export PATH=$PATH:/usr/local/opt/qt5/bin ; fi 22 - if [[ "$TRAVIS_OS_NAME" = "osx" ]] ; then export PATH=$PATH:/usr/local/opt/qt5/bin ; fi
23 - if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then for x in g++ gcc gcc-ar gcc-nm gcc-ranlib ; do sudo ln -sf /usr/bin/$x-4.9 /usr/bin/$x ; sudo ln -sf /usr/bin/x86_64-linux-gnu-gcc-$x-4.9 /usr/bin/x86_64-linux-gnu-gcc-$x ; done; fi
24 - ( cd ../ ; git clone https://github.com/sandstorm-io/capnproto ) 23 - ( cd ../ ; git clone https://github.com/sandstorm-io/capnproto )
24 - ( cd ../capnproto/ ; git checkout v0.6.0 )
25 - ( cd ../capnproto/c++ ; autoreconf -i ) 25 - ( cd ../capnproto/c++ ; autoreconf -i )
26 - ( cd ../capnproto/c++ ; ./configure && make && sudo make install ) 26 - ( cd ../capnproto/c++ ; ./configure && make && sudo make install )
27 27
28 before_script: 28 before_script:
29 - if [[ "$TRAVIS_OS_NAME" = "linux" ]] ; then ./configure ; else ./repoint install && qmake -r sonic-visualiser.pro ; fi 29 - if [[ "$TRAVIS_OS_NAME" = "linux" ]] ; then ./configure ; else ./repoint install && qmake -r sonic-visualiser.pro ; fi