travis: move parts of our build matrix to only run on the daily travis cron job
authorStefan Schmidt <s.schmidt@samsung.com>
Fri, 16 Nov 2018 11:35:55 +0000 (12:35 +0100)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Tue, 20 Nov 2018 09:53:13 +0000 (18:53 +0900)
We need to keep our builds running for every push to a minimum. Various
distro builds as well as the release-ready build can happily run once a
day.
This commit also switches from a build matrix to a simple list of build
jobs to allow the usage of build type = cron condition (not possible
with the matrix builds)

Differential Revision: https://phab.enlightenment.org/D7293

.travis.yml

index a697a3b..8ef3386 100644 (file)
@@ -17,50 +17,43 @@ env:
     - EIO_MONITOR_POLL=1
     - CC="ccache gcc"
     - CXX="ccache g++"
-  matrix:
-    -
-    - DISTRO=Ubuntu1804
-    - DISTRO=Fedora28 CI_BUILD_TYPE=wayland
-    - DISTRO=Fedora28 CI_BUILD_TYPE=misc
-    - DISTRO=Fedora28 CI_BUILD_TYPE=misc-disabled
-    - DISTRO=Fedora28 CI_BUILD_TYPE=release-ready
-    - DISTRO=Debian91
-    - DISTRO=Archlinux
 
-services:
-  - docker
-
-matrix:
-  fast_finish: true
-  exclude:
-    - os: osx
-      env:
-        DISTRO=Ubuntu1804
-    - os: osx
-      env:
-        DISTRO=Fedora28
-        CI_BUILD_TYPE=wayland
-    - os: osx
-      env:
-        DISTRO=Fedora28
-        CI_BUILD_TYPE=misc
-    - os: osx
+jobs:
+  include:
+    - env:
+      - os: linux
+      - DISTRO=Fedora28
+      - CI_BUILD_TYPE=wayland
+    - env:
+      - os: linux
+      - DISTRO=Fedora28
+      - CI_BUILD_TYPE=misc
+    - env:
+      - os: linux
+      - DISTRO=Fedora28
+      - CI_BUILD_TYPE=misc-disabled
+    - if: type = cron
       env:
-        DISTRO=Fedora28
-        CI_BUILD_TYPE=misc-disabled
-    - os: osx
+        - os: linux
+        - DISTRO=Ubuntu1804
+    - if: type = cron
       env:
-        DISTRO=Fedora28
-        CI_BUILD_TYPE=release-ready
-    - os: osx
+        - os: linux
+        - DISTRO=Fedora28
+        - CI_BUILD_TYPE=release-ready
+    - if: type = cron
       env:
-        DISTRO=Debian91
-    - os: osx
+        - os: linux
+        - DISTRO=Debian91
+    - if: type = cron
       env:
-        DISTRO=Archlinux
-
+        - os: linux
+        - DISTRO=Archlinux
+  exclude:
     - os: linux
-      env:
+
+services:
+  - docker
 
 before_install:
   - |