From 8ca08981b8c3637590bf9841151953a49b0ed891 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 4 Feb 2017 16:35:53 +0100 Subject: [PATCH] Travis: fix travis_run_in_fold (#1522) It seems that when running travis_fold_end in case of a failure the Travis job will be marked as "errored", but not "failed". Ref: https://github.com/awesomeWM/awesome/pull/1516#issuecomment-277448575 --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 22754a96f..f853c3cd2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -130,10 +130,9 @@ install: travis_run_in_fold() { travis_fold_start "$1" shift - "$@" - local result="$?" + "$@" || return travis_fold_end - return $result + return 0 } script: - export CMAKE_ARGS="-DLUA_LIBRARY=${LUALIBRARY} -DLUA_INCLUDE_DIR=${LUAINCLUDE} -D OVERRIDE_VERSION=$AWESOME_VERSION -DSTRICT_TESTS=true"