Add BUILD_SYSTEM env variable to Travis-CI build matrix
authorMarcel Metz <mmetz@adrian-broher.net>
Wed, 5 Oct 2016 16:05:43 +0000 (18:05 +0200)
committerRalph Giles <giles@thaumas.net>
Wed, 5 Oct 2016 20:20:34 +0000 (13:20 -0700)
This allows to switch between different build systems when building
multiple test matrix configurations.

.travis.yml

index 13d1f107250f8f5e32567745275e62f813c32a13..bf14445ae41d340f13d0a7a777dd11b7624dfd7c 100644 (file)
@@ -4,12 +4,15 @@ compiler:
   - gcc
   - clang
 
+env:
+  - BUILD_SYSTEM=AUTOTOOLS
+
 addons:
   apt:
     packages:
     - libogg-dev
 
 script:
-  - ./autogen.sh
-  - ./configure
-  - make -j2 V=1 distcheck
+  - if [[ "$BUILD_SYSTEM" == "AUTOTOOLS" ]] ; then ./autogen.sh ; fi
+  - if [[ "$BUILD_SYSTEM" == "AUTOTOOLS" ]] ; then ./configure ; fi
+  - if [[ "$BUILD_SYSTEM" == "AUTOTOOLS" ]] ; then make -j2 V=1 distcheck ; fi