From d6c51494df289c3eada7aa95cdedddf46335f1a9 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Mon, 5 Mar 2018 22:17:41 +0100 Subject: [PATCH] Return exit code != 0 when file not found. --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 032c116eae..4675e6cd00 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,10 +54,12 @@ install: php ../../vendor/bin/codecept build script: - - php -S 127.0.0.1:8080 &> /dev/null & + - | + cd $TRAVIS_BUILD_DIR + php -S 127.0.0.1:8080 &> /dev/null & #- phantomjs --webdriver=4444 > /dev/null 2>&1 & # Not in use since phantomjs hangs with QIODevice::write (QTcpSocket): device not open - sleep 5 - - curl -I http://127.0.0.1:8080/index-test.php + - curl --fail http://127.0.0.1:8080/index-test.php - | cd $TRAVIS_BUILD_DIR/protected/humhub/tests php ../../vendor/bin/codecept run