From: Markus Frosch Date: Wed, 1 Aug 2018 07:40:48 +0000 (+0200) Subject: travis: Stop when one of the commands fail X-Git-Tag: v2.10.0~70^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7a012272f0d2d7f440218cfc4e779c783a2cb91;p=icinga2 travis: Stop when one of the commands fail --- diff --git a/.travis.yml b/.travis.yml index 89b52bdd8..6963d0514 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,16 +36,16 @@ addons: before_script: - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then - mkdir build; - cd build; + mkdir build && + cd build && cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/tmp/icinga2 -DICINGA2_PLUGINDIR=/tmp/icinga2/sbin; fi script: - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then - make; - make test; - make install; - /tmp/icinga2/sbin/icinga2 --version; + make && + make test && + make install && + /tmp/icinga2/sbin/icinga2 --version && /tmp/icinga2/sbin/icinga2 daemon -C -DRunAsUser=$(id -u -n) -DRunAsGroup=$(id -g -n); fi