File tree 4 files changed +14
-15
lines changed
buildconfig/Jenkins/Conda
4 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 139
139
140
140
# Clean up artifacts from previous builds
141
141
rm -f -- * .dmg * .rpm * .deb * .tar.gz * .tar.xz * .exe
142
- # Remove ctest logs from previous builds
143
- rm -rf $BUILD_DIR /ctest_log
142
+ # Remove test logs from previous builds
143
+ rm -rf $BUILD_DIR /test_logs
144
144
145
145
# Run the script that handles the build
146
146
$SCRIPT_DIR /build $WORKSPACE $CMAKE_PRESET $ENABLE_DOCS $ENABLE_DEV_DOCS $ENABLE_BUILD_CODE $ENABLE_UNIT_TESTS $ENABLE_SYSTEM_TESTS $ENABLE_COVERITY " $EXTRA_CMAKE_FLAGS " $BUILD_THREADS
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ pipeline {
111
111
}
112
112
post {
113
113
always {
114
- archive_ctest_log ()
114
+ archive_test_logs ()
115
115
publish_test_reports()
116
116
}
117
117
}
@@ -133,7 +133,7 @@ pipeline {
133
133
}
134
134
post {
135
135
always {
136
- archive_ctest_log ()
136
+ archive_test_logs ()
137
137
publish_test_reports()
138
138
// Workaround for Windows so that failing system tests will fail the build
139
139
bat "\"${WIN_BASH}\" -ex -c \"test ${currentBuild.currentResult} != UNSTABLE\""
@@ -157,7 +157,7 @@ pipeline {
157
157
}
158
158
post {
159
159
always {
160
- archive_ctest_log ()
160
+ archive_test_logs ()
161
161
publish_test_reports()
162
162
}
163
163
}
@@ -553,8 +553,8 @@ def archive_standalone_package(platform) {
553
553
}
554
554
}
555
555
556
- def archive_ctest_log (){
557
- archiveArtifacts artifacts: "${CHECKOUT_DIR}/build/ctest_log /*.log", fingerprint: true
556
+ def archive_test_logs (){
557
+ archiveArtifacts artifacts: "${CHECKOUT_DIR}/build/test_logs /*.log", fingerprint: true
558
558
}
559
559
560
560
def archive_env_logs(platform) {
Original file line number Diff line number Diff line change 101
101
102
102
# Run unit tests
103
103
cd $WORKSPACE /build
104
- # mkdir for ctest log
105
- mkdir -p ctest_log
104
+ # mkdir for test logs
105
+ mkdir -p test_logs
106
106
if [[ $ENABLE_UNIT_TESTS == true ]]; then
107
- run_with_xvfb ctest -j$BUILD_THREADS --no-compress-output -T Test -O ctest_log/ $OSTYPE .log --schedule-random --output-on-failure --repeat until-pass:3 $WINDOWS_TEST_OPTIONS $WINDOWS_UNITTEST_TIMEOUT_OPTIONS
107
+ run_with_xvfb ctest -j$BUILD_THREADS --no-compress-output -T Test -O test_logs/ctest_ $OSTYPE .log --schedule-random --output-on-failure --repeat until-pass:3 $WINDOWS_TEST_OPTIONS $WINDOWS_UNITTEST_TIMEOUT_OPTIONS
108
108
terminate_xvfb_sessions
109
109
fi
110
110
111
111
if [[ $ENABLE_DOCS == true && $ENABLE_DOC_TESTS == true ]]; then
112
- run_with_xvfb cmake --build . --target docs-doctest -j $BUILD_THREADS $WINDOWS_BUILD_OPTIONS
113
- terminate_xvfb_sessions
112
+ # Build doctests without using Xvfb for better output when things fail. Output to file due to console memory issues
113
+ QT_QPA_PLATFORM=offscreen cmake --build . --target docs-doctest -j $BUILD_THREADS $WINDOWS_BUILD_OPTIONS > test_logs/doctest_ $OSTYPE .log
114
114
fi
115
115
116
116
if [[ $ENABLE_SYSTEM_TESTS == true ]]; then
Original file line number Diff line number Diff line change @@ -37,8 +37,7 @@ cmake --build . --target StandardTestData
37
37
export STANDARD_TEST_DATA_DIR=$SRC_DIR /build/ExternalData/Testing/Data
38
38
echo ' datasearch.directories = ' $STANDARD_TEST_DATA_DIR ' /UnitTest/;' $STANDARD_TEST_DATA_DIR ' /DocTest/' >> $PREFIX /bin/Mantid.properties
39
39
40
- # Set QT_QPA_PLATFORM=offscreen so we do not need to run with xvfb. Xvfb hides a lot of debug output
41
- export QT_QPA_PLATFORM=offscreen
42
- cmake --build . --target docs-qthelp
40
+ # Use QT_QPA_PLATFORM instead of Xvfb because Xvfb hides a lot of the useful output
41
+ QT_QPA_PLATFORM=offscreen cmake --build . --target docs-qthelp
43
42
44
43
cmake --build . --target install
You can’t perform that action at this time.
0 commit comments