diff --git a/.travis.yml b/.travis.yml index c2730d6..d2da544 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,25 +1,55 @@ language: cpp -compiler: gcc -dist: trusty matrix: include: - - env: - - BUILD=Debug - - BINDIR=debug - - env: - - BUILD=Release + - os: linux + dist: trusty + compiler: clang + env: + - CC=clang + - CXX=clang++ + - BUILDTYPE=Release - BINDIR=bin - -before_install: - #C++17 - - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - - sudo apt-get update -qq - -install: - #C++17 - - sudo apt-get install -qq g++-6 - - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90 + - os: linux + dist: trusty + compiler: clang + env: + - CC=clang + - CXX=clang++ + - BUILDTYPE=Debug + - BINDIR=debug + - os: linux + dist: trusty + compiler: gcc + addons: &gcc7 + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - cmake3 + - g++7 + - gcc7 + env: + - CC=gcc7 + - CXX=g++7 + - BUILDTYPE=Release + - BINDIR=bin + - os: linux + dist: trusty + compiler: gcc + addons: &gcc7 + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - cmake3 + - g++7 + - gcc7 + env: + - CC=gcc7 + - CXX=g++7 + - BUILDTYPE=Debug + - BINDIR=debug script: - cd build