Skip to content

Commit

Permalink
Add Clang & GCC versions (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincetse authored Dec 10, 2017
1 parent 0416791 commit d34b1fd
Showing 1 changed file with 207 additions and 14 deletions.
221 changes: 207 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,214 @@
language: cpp

compiler:
- gcc
- clang

addons:
apt:
packages:
- automake
- autoconf
- cppcheck
- g++
- libboost-test-dev
- make
- valgrind
matrix:
include:
- os: linux
dist: trusty
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- automake
- autoconf
- cppcheck
- g++-4.9
- libboost-test-dev
- make
- valgrind
env:
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"

- os: linux
dist: trusty
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- automake
- autoconf
- cppcheck
- g++-5
- libboost-test-dev
- make
- valgrind
env:
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"

- os: linux
dist: trusty
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- automake
- autoconf
- cppcheck
- g++-6
- libboost-test-dev
- make
- valgrind
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"

- os: linux
dist: trusty
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- automake
- autoconf
- cppcheck
- g++-7
- libboost-test-dev
- make
- valgrind
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"

- os: linux
dist: trusty
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-3.5
packages:
- automake
- autoconf
- clang-3.5
- cppcheck
- libboost-test-dev
- make
- valgrind
env:
- MATRIX_EVAL="CC=clang-3.5 && CXX=clang++-3.5"

- os: linux
dist: trusty
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-3.6
packages:
- automake
- autoconf
- clang-3.6
- cppcheck
- libboost-test-dev
- make
- valgrind
env:
- MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6"

- os: linux
dist: trusty
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
packages:
- automake
- autoconf
- clang-3.7
- cppcheck
- libboost-test-dev
- make
- valgrind
env:
- MATRIX_EVAL="CC=clang-3.7 && CXX=clang++-3.7"

- os: linux
dist: trusty
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-3.8
packages:
- automake
- autoconf
- clang-3.8
- cppcheck
- libboost-test-dev
- make
- valgrind
env:
- MATRIX_EVAL="CC=clang-3.8 && CXX=clang++-3.8"

- os: linux
dist: trusty
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-3.9
packages:
- automake
- autoconf
- clang-3.9
- cppcheck
- libboost-test-dev
- make
- valgrind
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"

- os: linux
dist: trusty
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages:
- automake
- autoconf
- clang-4.0
- cppcheck
- libboost-test-dev
- make
- valgrind
env:
- MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0"

- os: linux
dist: trusty
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- automake
- autoconf
- clang-5.0
- cppcheck
- libboost-test-dev
- make
- valgrind
env:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"

before_install:
- eval "${MATRIX_EVAL}"
- pip install --user cpp-coveralls

script:
Expand Down

0 comments on commit d34b1fd

Please sign in to comment.