From 9360a7c306b95d45ac460e9da3463175479e3b62 Mon Sep 17 00:00:00 2001
From: Joseph Mirabel <jmirabel@laas.fr>
Date: Thu, 12 Sep 2019 11:44:19 +0200
Subject: [PATCH] [CI] Make travis faster and more readable + add Bionic.

---
 .travis.yml | 40 +++++++++++++++++++++++++++++-----------
 1 file changed, 29 insertions(+), 11 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index eee60d26..b4b0109a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,19 +3,37 @@ language: cpp
 env:
   global:
     - CTEST_PARALLEL_LEVEL=4
-  matrix:
-    - BUILD_TYPE=Debug
-    - BUILD_TYPE=Release
+    - CTEST_OUTPUT_ON_FAILURE=1
+    - CXX_FLAGS_DEBUG="-O1"
 
 matrix:
   include:
-    - dist: trusty
-      compiler: gcc
-    - dist: xenial
-      compiler: gcc
-    - dist: xenial
+    - name: "Trusty - Debug - g++"
+      env: BUILD_TYPE=Debug
+      dist: trusty
+      compiler: g++
+
+    - 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
-    - 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
 
 install:
@@ -29,13 +47,13 @@ script:
   - cd build
 
   # 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
   - make -j4
 
   # 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
   - sudo make -j4 install
-- 
GitLab