mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-05 04:03:22 +03:00
Tests: Fix nightly binary tests to fail on error
We generate a small shell script to drive the steps. Previously a failure in the `release_cmake.cmake` script was not diagnosed and hidden from the script exit code by the following upload step. Tell the shell to terminate with failure on the first command that fails.
This commit is contained in:
1 parent
3ec986ce8e
commit
2c71208a78
1 file changed
+2
-1
@@ -764,7 +764,8 @@ if(BUILD_TESTING)
|
||||
set(_TEST_DIR "${CMake_BINARY_DIR}/Tests/${name}")
|
||||
file(MAKE_DIRECTORY "${_TEST_DIR}")
|
||||
file(WRITE "${_TEST_DIR}/nightly-cmake.sh"
|
||||
"cd ${_TEST_DIR}
|
||||
"set -e
|
||||
cd ${_TEST_DIR}
|
||||
${CMake_BINARY_DIR}/bin/cmake -DCMAKE_CREATE_VERSION=nightly -P ${CMake_SOURCE_DIR}/Utilities/Release/${script}
|
||||
${CMake_SOURCE_DIR}/Utilities/Release/push.bash --dir dev -- '${CMake_BUILD_NIGHTLY_RELEASES}'
|
||||
")
|
||||
|
||||
Reference in new issue
Block a user