Commit 6399fa1 1 parent 3e2288f commit 6399fa1 Copy full SHA for 6399fa1
File tree 3 files changed +11
-18
lines changed
buildconfig/Jenkins/Conda
3 files changed +11
-18
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,8 +111,7 @@ pipeline {
111
111
}
112
112
post {
113
113
always {
114
- archive_ctest_log()
115
- archive_doctest_log()
114
+ archive_test_logs()
116
115
publish_test_reports()
117
116
}
118
117
}
@@ -134,8 +133,7 @@ pipeline {
134
133
}
135
134
post {
136
135
always {
137
- archive_ctest_log()
138
- archive_doctest_log()
136
+ archive_test_logs()
139
137
publish_test_reports()
140
138
// Workaround for Windows so that failing system tests will fail the build
141
139
bat "\"${WIN_BASH}\" -ex -c \"test ${currentBuild.currentResult} != UNSTABLE\""
@@ -159,8 +157,7 @@ pipeline {
159
157
}
160
158
post {
161
159
always {
162
- archive_ctest_log()
163
- archive_doctest_log()
160
+ archive_test_logs()
164
161
publish_test_reports()
165
162
}
166
163
}
@@ -556,12 +553,8 @@ def archive_standalone_package(platform) {
556
553
}
557
554
}
558
555
559
- def archive_ctest_log(){
560
- archiveArtifacts artifacts: "${CHECKOUT_DIR}/build/ctest_log/*.log", fingerprint: true
561
- }
562
-
563
- def archive_doctest_log() {
564
- archiveArtifacts artifacts: "${CHECKOUT_DIR}/build/doctest_log.log", fingerprint: true
556
+ def archive_test_logs(){
557
+ archiveArtifacts artifacts: "${CHECKOUT_DIR}/build/test_logs/*.log", fingerprint: true
565
558
}
566
559
567
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
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 > doctest_log .log
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
You can’t perform that action at this time.
0 commit comments