diff options
author | Frédéric Brière <fbriere@fbriere.net> | 2018-02-10 11:51:32 -0500 |
---|---|---|
committer | Frédéric Brière <fbriere@fbriere.net> | 2018-02-10 13:30:21 -0500 |
commit | 53ed7b6a1dcf7364d5518ead8fb27433cbcd8907 (patch) | |
tree | c7bd551354cefe113724b2ff1070de4b7c6f03e3 | |
parent | 4202bf486cbc7ff69b0ac1a009a78198a9a2f8a4 (diff) | |
download | twinkle-53ed7b6a1dcf7364d5518ead8fb27433cbcd8907.tar twinkle-53ed7b6a1dcf7364d5518ead8fb27433cbcd8907.tar.gz twinkle-53ed7b6a1dcf7364d5518ead8fb27433cbcd8907.tar.lz twinkle-53ed7b6a1dcf7364d5518ead8fb27433cbcd8907.tar.xz twinkle-53ed7b6a1dcf7364d5518ead8fb27433cbcd8907.zip |
Test various compiler versions and build options on Travis CI
-rw-r--r-- | .travis.yml | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 88b73c1..de77d41 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,12 +3,29 @@ dist: trusty sudo: required env: - # (qttools5-dev-tools is explicitly included because of Debian bug #835295) - - FLAGS="-DWITH_QT5=ON -DWITH_ALSA=ON -DWITH_GSM=ON -DWITH_SPEEX=ON -DWITH_ZRTP=ON" PACKAGES="libasound2-dev libgsm1-dev libspeex-dev libspeexdsp-dev libzrtpcpp-dev qtdeclarative5-dev qttools5-dev qttools5-dev-tools" + global: + - FLAGS="-DWITH_QT5=ON -DWITH_ALSA=ON -DWITH_GSM=ON -DWITH_SPEEX=ON -DWITH_ZRTP=ON" + # (qttools5-dev-tools is explicitly included because of Debian bug #835295) + - PACKAGES="libasound2-dev libgsm1-dev libspeex-dev libspeexdsp-dev libzrtpcpp-dev qtdeclarative5-dev qttools5-dev qttools5-dev-tools" + matrix: + # Test various compiler versions + - PACKAGES_ADD="g++-4.9" MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" + - PACKAGES_ADD="g++-5" MATRIX_EVAL="CC=gcc-5 && CXX=g++-5" + - PACKAGES_ADD="g++-6" MATRIX_EVAL="CC=gcc-6 && CXX=g++-6" + # The version of uCommon available on trusty (6.0.7) will cause a build + # failure when compiling with GCC 7 or Clang. + #- PACKAGES_ADD="g++-7" MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" + # Test with all options disabled + - FLAGS="-DWITH_QT5=OFF -DWITH_ALSA=OFF -DWITH_GSM=OFF -DWITH_SPEEX=OFF -DWITH_ZRTP=OFF" PACKAGES="" + +# See https://docs.travis-ci.com/user/languages/cpp/#C11-C%2B%2B11-%28and-Beyond%29-and-Toolchain-Versioning +before_install: + - eval "${MATRIX_EVAL}" install: + - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - sudo apt-get update - - sudo apt-get -y install bison cmake flex libccrtp-dev libmagic-dev libreadline-dev libsndfile1-dev libucommon-dev libxml2-dev linux-libc-dev $PACKAGES + - sudo apt-get -y install bison cmake flex libccrtp-dev libmagic-dev libreadline-dev libsndfile1-dev libucommon-dev libxml2-dev linux-libc-dev $PACKAGES $PACKAGES_ADD script: - mkdir _build |