Skip to content

Commit 3e2288f

Browse files
committed
Archive doctest log
1 parent 5f57a1e commit 3e2288f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

buildconfig/Jenkins/Conda/nightly_build_and_deploy.jenkinsfile

+7
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ pipeline {
112112
post {
113113
always {
114114
archive_ctest_log()
115+
archive_doctest_log()
115116
publish_test_reports()
116117
}
117118
}
@@ -134,6 +135,7 @@ pipeline {
134135
post {
135136
always {
136137
archive_ctest_log()
138+
archive_doctest_log()
137139
publish_test_reports()
138140
// Workaround for Windows so that failing system tests will fail the build
139141
bat "\"${WIN_BASH}\" -ex -c \"test ${currentBuild.currentResult} != UNSTABLE\""
@@ -158,6 +160,7 @@ pipeline {
158160
post {
159161
always {
160162
archive_ctest_log()
163+
archive_doctest_log()
161164
publish_test_reports()
162165
}
163166
}
@@ -557,6 +560,10 @@ def archive_ctest_log(){
557560
archiveArtifacts artifacts: "${CHECKOUT_DIR}/build/ctest_log/*.log", fingerprint: true
558561
}
559562

563+
def archive_doctest_log() {
564+
archiveArtifacts artifacts: "${CHECKOUT_DIR}/build/doctest_log.log", fingerprint: true
565+
}
566+
560567
def archive_env_logs(platform) {
561568
env_log_dir = "**/conda-bld/${platform}/env_logs"
562569
archiveArtifacts artifacts: env_log_dir += "/**/*.txt",

buildconfig/Jenkins/Conda/run-tests

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ if [[ $ENABLE_UNIT_TESTS == true ]]; then
109109
fi
110110

111111
if [[ $ENABLE_DOCS == true && $ENABLE_DOC_TESTS == true ]]; then
112-
# Build doctests without using Xvfb for better output when things fail
113-
QT_QPA_PLATFORM=offscreen cmake --build . --target docs-doctest -j$BUILD_THREADS $WINDOWS_BUILD_OPTIONS
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
114114
fi
115115

116116
if [[ $ENABLE_SYSTEM_TESTS == true ]]; then

0 commit comments

Comments
 (0)