Skip to content

Commit

Permalink
Modification of matrix, trying to fix CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWolters committed Oct 14, 2018
1 parent 8671b2b commit a6df5b1
Showing 1 changed file with 34 additions and 23 deletions.
57 changes: 34 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,54 @@
language: cpp
dist: trusty
sudo: false

# TODO(2018-10-14 by wolters) Add support for OS-X and additional compiler
# Use Linux operating system (OS) unless specified otherwise.
os: linux
dist: trusty

env:
global:
- CMAKE_VERSION=3.10.3
- NINJA_VERSION=1.8.2

# TODO(2018-10-14 by wolters) Add support for Mac OS X and additional compiler
# versions.
matrix:
# GNU Compiler Collection (GCC) 7
include:
- os: linux
addons:
- name: "GCC 7, Debug"
env:
- C_COMPILER=gcc-7
- CXX_COMPILER=g++-7
- BUILD_TYPE=Debug
addons: &gcc7
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- name: "GCC 7, Release"
env:
- C_COMPILER=gcc-7
- CXX_COMPILER=g++-7
- BUILD_TYPE=Release
addons: *gcc7
- name: "Clang 7, Debug"
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
# Clang 7
- os: linux
addons:
- C_COMPILER=clang-7.0
- CXX_COMPILER=clang++-7.0
- BUILD_TYPE=Debug
addons: &clang7
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- clang-7.0
- clang-7
- name: "Clang 7, Release"
env:
- MATRIX_EVAL="CC=clang-7.0 && CXX=clang++-7.0"

before_install:
- eval "${MATRIX_EVAL}"

env:
global:
- CMAKE_VERSION=3.10.3
- NINJA_VERSION=1.8.2
matrix:
- BUILD_TYPE=Debug
- BUILD_TYPE=Release
- C_COMPILER=clang-7.0
- CXX_COMPILER=clang++-7.0
- BUILD_TYPE=Release
addons: *clang7

install:
- |
Expand All @@ -64,7 +75,7 @@ script:
# Configure & Generate the project.
# TODO(2018-10-14 by wolters) Currently the undocumented CMake options -H and
# -B are used. This can be changed with the coming CMake release v3.11.
- cmake -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="${BUILD_TYPE}" -H. -B_build
- cmake -G "Ninja" -DCMAKE_CXX_COMPILER:STRING="${CXX_COMPILER}" -DCMAKE_C_COMPILER:STRING="${C_COMPILER}" -DCMAKE_BUILD_TYPE:STRING="${BUILD_TYPE}" -H. -B_build
# Build the project.
- cmake --build _build
# Test the project.
Expand Down

0 comments on commit a6df5b1

Please sign in to comment.