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
This commit is contained in:
Daniel Hahler 2017-02-04 16:35:53 +01:00 committed by GitHub
parent c003f7ba78
commit 8ca08981b8
1 changed files with 2 additions and 3 deletions

View File

@ -130,10 +130,9 @@ install:
travis_run_in_fold() { travis_run_in_fold() {
travis_fold_start "$1" travis_fold_start "$1"
shift shift
"$@" "$@" || return
local result="$?"
travis_fold_end travis_fold_end
return $result return 0
} }
script: script:
- export CMAKE_ARGS="-DLUA_LIBRARY=${LUALIBRARY} -DLUA_INCLUDE_DIR=${LUAINCLUDE} -D OVERRIDE_VERSION=$AWESOME_VERSION -DSTRICT_TESTS=true" - export CMAKE_ARGS="-DLUA_LIBRARY=${LUALIBRARY} -DLUA_INCLUDE_DIR=${LUAINCLUDE} -D OVERRIDE_VERSION=$AWESOME_VERSION -DSTRICT_TESTS=true"