summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2020-05-29 23:41:27 +0200
committerAnne Jan Brouwer <brouwer@annejan.com>2020-05-29 23:41:27 +0200
commita18c442ee1fcddde5c64992b9f190083bd61efcc (patch)
tree3e00987ef6ee2c5eb5f916b79bf226af61d32d6d /.travis.yml
parent793a499ecaaab52100c14fc49eda932d9f8410b0 (diff)
Let's try some matrix magic
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml21
1 files changed, 15 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 384803ed..e8ff78e4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,9 +1,15 @@
language: cpp
+matrix:
+ include:
+ - os: linux
+ env:
+ - QT_BASE=59
+ - os: linux
+ env:
+ - QT_BASE=514
+ - os: osx
dist: bionic
sudo: true
-os:
-- linux
-- osx
compiler:
- gcc
- clang
@@ -11,7 +17,8 @@ env:
global:
secure: WaZq3f6KIAc0dnR4WOXYWDvUYiqlrzsZC/PQse47FnvC0oQC65J5w3kJOj/P26DgsUEqKQF3ukXogkM2mp5pS4+CMgivEmQmAbgQTtwcKpC5HPZxgI+8FgkCjcalJKWGWYoxlScNVNiKMs+89ApcSQE9kH9PZeUS9dukN2Php1U=
before_install:
-- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository -y ppa:beineri/opt-qt-5.12.3-bionic; fi
+- if [[ "$TRAVIS_OS_NAME" = "linux" && "$QT_BASE" = "59" ]]; then sudo add-apt-repository -y ppa:beineri/opt-qt-5.9.7-bionic; fi
+- if [[ "$TRAVIS_OS_NAME" = "linux" && "$QT_BASE" = "514" ]]; then sudo add-apt-repository -y ppa:beineri/opt-qt-5.14.2-bionic; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
addons:
coverity_scan:
@@ -33,7 +40,8 @@ install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then nvm use 12; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then npm install -g appdmg; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq update; fi
-- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq install qt512base qt512tools qt512svg libgl1-mesa-dev; fi
+- if [[ "$TRAVIS_OS_NAME" = "linux" && "$QT_BASE" = "59" ]]; then sudo apt-get -qq install qt59base qt59tools qt59svg libgl1-mesa-dev; fi
+- if [[ "$TRAVIS_OS_NAME" = "linux" && "$QT_BASE" = "514" ]]; then sudo apt-get -qq install qt514base qt514tools qt514svg libgl1-mesa-dev; fi
- if [[ "$TRAVIS_OS_NAME" = "linux" && "$CC" = "gcc" ]]; then sudo apt-get -qq install g++-6 gcc-6; fi
- if [[ "$TRAVIS_OS_NAME" = "linux" && "$CC" = "gcc" ]]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6; fi
- if [[ "$TRAVIS_OS_NAME" = "linux" && "$CC" = "gcc" ]]; then sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-6 90; fi
@@ -41,7 +49,8 @@ install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then gem install coveralls-lcov; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq install lcov; fi
before_script:
-- if [ "$TRAVIS_OS_NAME" = "linux" ]; then source /opt/qt512/bin/qt512-env.sh; fi
+- if [ "$TRAVIS_OS_NAME" = "linux" && "$QT_BASE" = "59" ]; then source /opt/qt512/bin/qt59-env.sh; fi
+- if [ "$TRAVIS_OS_NAME" = "linux" && "$QT_BASE" = "514" ]; then source /opt/qt512/bin/qt514-env.sh; fi
- "curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | sudo bash"
- qmake -v
script: