From ab45f55ecb3f1191f8b96a81feab3330dd6536b6 Mon Sep 17 00:00:00 2001 From: Thomas Flouris Date: Thu, 27 Jul 2017 14:30:27 +0100 Subject: [PATCH] added multi-compiler check for travis CI --- .travis.yml | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 112 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e04b388..42c1966 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,115 @@ language: c -compiler: - - gcc - - clang +matrix: + include: + - os: linux + compiler: gcc + addons: + apt: + sources: ['ubuntu-toolchain-r-test'] + packages: ['gcc-4.6'] + env: + - COMPILER=gcc-4.6 -script: ./autogen.sh && ./configure && make && make check + - os: linux + compiler: gcc + addons: + apt: + sources: ['ubuntu-toolchain-r-test'] + packages: ['gcc-4.7'] + env: + - COMPILER=gcc-4.7 + + - os: linux + compiler: gcc + addons: + apt: + sources: ['ubuntu-toolchain-r-test'] + packages: ['gcc-4.8'] + env: + - COMPILER=gcc-4.8 + + - os: linux + compiler: gcc + addons: + apt: + sources: ['ubuntu-toolchain-r-test'] + packages: ['gcc-4.9'] + env: + - COMPILER=gcc-4.9 + + - os: linux + compiler: gcc + addons: + apt: + sources: ['ubuntu-toolchain-r-test'] + packages: ['gcc-5'] + env: + - COMPILER=gcc-5 + + - os: linux + compiler: gcc + addons: + apt: + sources: ['ubuntu-toolchain-r-test'] + packages: ['gcc-6'] + env: + - COMPILER=gcc-6 + + - os: linux + compiler: clang + addons: + apt: + sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5'] + packages: ['clang-3.5'] + env: + - COMPILER=clang-3.5 + + - os: linux + compiler: clang + addons: + apt: + sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.6'] + packages: ['clang-3.6'] + env: + - COMPILER=clang-3.6 + + - os: linux + compiler: clang + addons: + apt: + sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7'] + packages: ['clang-3.7'] + env: + - COMPILER=clang-3.7 + + - os: linux + compiler: clang + addons: + apt: + sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.8'] + packages: ['clang-3.8'] + env: + - COMPILER=clang-3.8 + + - os: linux + dist: trusty + compiler: clang + addons: + apt: + sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-3.9'] + packages: ['clang-3.9'] + env: + - COMPILER=clang-3.9 + + - os: linux + dist: trusty + compiler: clang + addons: + apt: + sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-4.0'] + packages: ['clang-4.0'] + env: + - COMPILER=clang-4.0 + +script: ./autogen.sh && CC=$COMPILER ./configure && make && make check