travis: update .travis.yml not to run tests when build fails
authorThomas Haller <thaller@redhat.com>
Tue, 16 Feb 2016 11:35:55 +0000 (12:35 +0100)
committerThomas Haller <thaller@redhat.com>
Tue, 16 Feb 2016 12:01:47 +0000 (13:01 +0100)
When building fails, we should not run the tests. They clutter
the output.

.travis.yml

index 44ec6ac..b907bf1 100644 (file)
@@ -12,10 +12,10 @@ before_install:
   - sudo apt-get update
   - sudo apt-get install libnl-3-dev libndp-dev automake
 
-script:
-  - sh autogen.sh --with-systemd-logind=no --enable-more-warnings=no
-  - make -j4
-  - ./contrib/travis/travis-check.sh
+script: |
+    sh autogen.sh --with-systemd-logind=no --enable-more-warnings=no &&
+    make -j4 &&
+    ./contrib/travis/travis-check.sh
 
 addons:
   coverity_scan: