Skip to content

Commit

Permalink
added multi-compiler check for travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
xflouris committed Jul 27, 2017
1 parent bda42b4 commit ab45f55
Showing 1 changed file with 112 additions and 4 deletions.
116 changes: 112 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ab45f55

Please sign in to comment.