]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
travis: Don't have a separate script definition for macOS
authorAndrea Bolognani <abologna@redhat.com>
Wed, 6 Sep 2017 13:58:22 +0000 (15:58 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 14 Sep 2017 14:59:24 +0000 (16:59 +0200)
Make parts of the build command OS-dependent instead.

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

index ba8ff49a19180235bb3e274f9522e88a86291c29..1ade6dfa34f1fb60562c75bbf141775b8b2016f8 100644 (file)
@@ -76,7 +76,9 @@ before_install:
 before_script:
   - ./autogen.sh
 script:
-  - make -j3 && make -j3 syntax-check && make -j3 check
+  # Many unit tests still fail on macOS, and there are a bunch of issues with
+  # syntax-check as well, so skip those steps on that platform for now
+  - make -j3 && if [ "$TRAVIS_OS_NAME" != "osx" ]; then make -j3 syntax-check && make -j3 check; fi
 
 # Environments here are run in addition to the main environment defined above
 matrix:
@@ -89,10 +91,6 @@ matrix:
       dist: trusty
     - compiler: clang
       os: osx
-      script:
-        # many unit tests fail & so does syntax-check, so skip for now
-        # one day we must fix it though....
-        - make -j3
 
 after_failure:
   - echo '============================================================================'