Skip to content

Commit

Permalink
added multiple gcc and clang version for testing with travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
flouris authored and flouris committed May 15, 2017
1 parent 33e5e35 commit 8648c87
Showing 1 changed file with 94 additions and 4 deletions.
98 changes: 94 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8648c87

Please sign in to comment.