]> git.ozlabs.org Git - ccan/commitdiff
.travis.yml: Rework Travis matrix
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Jan 2017 04:39:48 +0000 (15:39 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 17 Jan 2017 02:19:15 +0000 (13:19 +1100)
At the moment the .travis.yml implicitly constructs a build matrix
with the two compiler options.  In future we want to add more build
options for wider testing: different base distro, more compiler
versions, etc.  However, a fair few of the possible combinations have
various problems meaning we don't want to test them routinely.

So, this reworks from implicitly constructing the matrix to using
matrix: include: options to explicitly build the options we want.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
.travis.yml

index fe44304d70bfe0b5033e8e30a59945b3591b0a72..aaf5b02afbad49d3cf68c6081696034458d131ca 100644 (file)
@@ -1,12 +1,11 @@
 language: c
 sudo: false
 
 language: c
 sudo: false
 
-compiler:
-  - gcc
-  - clang
-
-env:
-    - CFLAGS="-std=gnu99"
+matrix:
+  include:
+  - compiler: gcc
+    env: CFLAGS="-std=gnu99"
+  - compiler: clang
 
 script:
     - make -j2 -k quiet=1
 
 script:
     - make -j2 -k quiet=1