Skip to content

Commit

Permalink
Add clang and improve Travis CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpas committed Apr 24, 2019
1 parent 29aad06 commit 167514f
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,27 @@ branches:
- master
- ci # CI testing

language: cpp

cache:
apt: true
language: generic # Avoid system resetting CC/CXX before install

dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
env: COMPILER=gcc-8 COMPILERXX=g++-8
- g++-8 # Install newer libstdc++ also required by clang

matrix:
include:
- compiler: gcc
env: COMPILER=gcc-8 COMPILERXX=g++-8
- compiler: gcc-8
env: CC=gcc-8 CXX=g++-8

install:
# Overwrite compiler variables
- if [[ "${COMPILER}" != "" ]]; then
export CC=${COMPILER};
export CXX=${COMPILERXX};
fi
- compiler: clang
env: CC=clang CXX=clang++

script:
# DMC
- cd dmc && mkdir build && cd build && cmake .. && make -j3
# DME
#- cd dme && mkdir build && cd build && cmake .. && make -j3

0 comments on commit 167514f

Please sign in to comment.