]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
travis: test upstart/systemd init script handling
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 23 Feb 2018 10:58:27 +0000 (10:58 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 28 Feb 2018 17:53:23 +0000 (17:53 +0000)
Enable testing of both the upstart and systemd init script handling.
We test a different one in each scenario. Even though trusty only
cares about upstart, it is fine for us to test rules that install
systemd, since we're not actually running these scripts for real.

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
.travis.yml

index 282cb223b010f500af1faebfb043483a7bd030e5..44f680ad0724a051f34accb173872c32cd5272b4 100644 (file)
@@ -6,8 +6,12 @@ matrix:
   include:
     - compiler: gcc
       dist: trusty
+      env:
+        - DISTCHECK_CONFIGURE_FLAGS="--with-init-script=upstart"
     - compiler: clang
       dist: trusty
+      env:
+        - DISTCHECK_CONFIGURE_FLAGS="--with-init-script=systemd"
     - compiler: clang
       os: osx
       script:
@@ -99,7 +103,7 @@ before_script:
   - ./autogen.sh --prefix=$(pwd)/install-root
 
 script:
-  - make -j3 && make -j3 syntax-check && make -j3 distcheck
+  - make -j3 && make -j3 syntax-check && make -j3 distcheck DISTCHECK_CONFIGURE_FLAGS=$DISTCHECK_CONFIGURE_FLAGS
 
 after_failure:
   - echo '============================================================================'