From 8648c87ca697422e039cd5f6a22ac6284ef2fc11 Mon Sep 17 00:00:00 2001 From: flouris Date: Mon, 15 May 2017 04:08:05 +0200 Subject: [PATCH] added multiple gcc and clang version for testing with travis CI --- .travis.yml | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 94 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e04b388..cd5a465 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,97 @@ language: c -compiler: - - gcc - - clang +matrix: + include: + - os: linux + compiler: gcc + addons: + apt: + sources: ['ubuntu-toolchain-r-test'] + packages: ['gcc-4.8'] + env: + - COMPILER=gcc-4.8 -script: ./autogen.sh && ./configure && make && make check + - 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: ['g++-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