ci: travis: allow for some failures in the matrix build
authorStefan Schmidt <stefan@osg.samsung.com>
Wed, 25 Apr 2018 09:51:33 +0000 (11:51 +0200)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 30 May 2018 07:50:27 +0000 (16:50 +0900)
We want to make sure to have a stable and reliable subset of builds that
define if the build passed or not.
We also want to have builds which are more experimental. They give us a
good insight, but we are not yet ready to have them supported officially
as need-to-pass build. Namely the macOS build.

Another side effect of this change is that we reduce the critical build
matrix to 5 builds. The exact number of parallel ones we are allowed. With
fast_finish Travis will not wait for the other ones to finish before
setting the build status. This will allow us to have all builds in
parallel and not waiting for build #6 to be finished.

.travis.yml

index 2714057..8c7ecaf 100644 (file)
@@ -3,23 +3,39 @@ language: c
 sudo: required
 dist: trusty
 
-os: linux
+os:
+  - linux
+  - osx
+
+env:
+  -
+  - DISTRO=Ubuntu1710
+  - DISTRO=Fedora27 CI_BUILD_TYPE=wayland
+  - DISTRO=Fedora27 CI_BUILD_TYPE=misc
+  - DISTRO=Debian91
+  - DISTRO=Archlinux
 
 services:
   - docker
 
 matrix:
-  include:
-    - env: DISTRO=Ubuntu1710
-    - env: DISTRO=Fedora27
-    - env: DISTRO=Fedora27 CI_BUILD_TYPE=wayland
-    - env: DISTRO=Fedora27 CI_BUILD_TYPE=misc
-    - env: DISTRO=Debian91
-    - env: DISTRO=Archlinux
+  fast_finish: true
+  exclude:
     - os: osx
-      osx_image: xcode8.3
-
-# Xcode 8.3.3, OS X 10.12
+      env: DISTRO=Ubuntu1710
+    - os: osx
+      env: DISTRO=Fedora27 CI_BUILD_TYPE=wayland
+    - os: osx
+      env: DISTRO=Fedora27 CI_BUILD_TYPE=misc
+    - os: osx
+      env: DISTRO=Debian91
+    - os: osx
+      env: DISTRO=Archlinux
+    - os: linux
+      env:
+  allow_failures:
+    - os: osx
+      env:
 
 before_install:
   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then .ci/ci-osx-deps.sh ; fi