Skip to content
Snippets Groups Projects
Commit 9360a7c3 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

[CI] Make travis faster and more readable + add Bionic.

parent 18ff0d35
No related branches found
No related tags found
No related merge requests found
...@@ -3,19 +3,37 @@ language: cpp ...@@ -3,19 +3,37 @@ language: cpp
env: env:
global: global:
- CTEST_PARALLEL_LEVEL=4 - CTEST_PARALLEL_LEVEL=4
matrix: - CTEST_OUTPUT_ON_FAILURE=1
- BUILD_TYPE=Debug - CXX_FLAGS_DEBUG="-O1"
- BUILD_TYPE=Release
matrix: matrix:
include: include:
- dist: trusty - name: "Trusty - Debug - g++"
compiler: gcc env: BUILD_TYPE=Debug
- dist: xenial dist: trusty
compiler: gcc compiler: g++
- dist: xenial
- name: "Xenial - Debug - g++"
env: BUILD_TYPE=Debug
dist: xenial
compiler: g++
- name: "Xenial - Release - g++"
env: BUILD_TYPE=Release
dist: xenial
compiler: g++
- name: "Xenial - Debug - clang"
env: BUILD_TYPE=Debug
dist: xenial
compiler: clang compiler: clang
- os: osx
- name: "Bionic - Debug - g++"
env: BUILD_TYPE=Debug
dist: xenial
compiler: g++
- name: "OSX - Debug - clang"
env: BUILD_TYPE=Debug
os: osx
compiler: clang compiler: clang
install: install:
...@@ -29,13 +47,13 @@ script: ...@@ -29,13 +47,13 @@ script:
- cd build - cd build
# Configure # Configure
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CXX_FLAGS=-w .. - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CXX_FLAGS=-w -DCMAKE_CXX_FLAGS_DEBUG=${CXX_FLAGS_DEBUG} ..
# Build # Build
- make -j4 - make -j4
# Run unit tests # Run unit tests
- travis_wait 30 make test || travis_wait 30 ctest -VV - travis_wait 30 ctest
# Make sure we can install and uninstall with no issues # Make sure we can install and uninstall with no issues
- sudo make -j4 install - sudo make -j4 install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment