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