summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2020-01-09 11:41:37 -0600
committerPaul J. Davis <paul.joseph.davis@gmail.com>2020-01-09 12:51:18 -0600
commit129183b02ae2e88c7236c830702ddc9b43452cf8 (patch)
tree3e063236f6b5ea65fa060039133b71a6a7f60548
parentb66f6b46253ffbc4d76af9ec505f0de28c0a67f1 (diff)
downloadcouchdb-129183b02ae2e88c7236c830702ddc9b43452cf8.tar.gz
Generate test results on build failures
-rw-r--r--Makefile6
-rw-r--r--build-aux/Jenkinsfile.full2
-rw-r--r--build-aux/Jenkinsfile.pr2
3 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9ab9b1b4d..af03a6fa9 100644
--- a/Makefile
+++ b/Makefile
@@ -305,6 +305,12 @@ endif
--ignore "$(ignore_js_suites)"' \
done
+.PHONY: build-report
+# target: build-report - Generate and upload a build report
+build-report:
+ build-aux/show-test-results.py --suites=10 --tests=10 > test-results.log
+ build-aux/logfile-uploader.py
+
.PHONY: check-qs
# target: check-qs - Run query server tests (ruby and rspec required!)
check-qs:
diff --git a/build-aux/Jenkinsfile.full b/build-aux/Jenkinsfile.full
index 174cbd4cf..2848283f0 100644
--- a/build-aux/Jenkinsfile.full
+++ b/build-aux/Jenkinsfile.full
@@ -22,7 +22,7 @@ cd build
tar -xf ${WORKSPACE}/apache-couchdb-*.tar.gz
cd apache-couchdb-*
./configure --with-curl --spidermonkey-version ${sm_ver}
-make check || (build-aux/logfile-uploader.py && false)
+make check || (make build-report && false)
'''
make_packages = '''
diff --git a/build-aux/Jenkinsfile.pr b/build-aux/Jenkinsfile.pr
index c45c04ac9..3a4304d22 100644
--- a/build-aux/Jenkinsfile.pr
+++ b/build-aux/Jenkinsfile.pr
@@ -23,7 +23,7 @@ tar -xf ${WORKSPACE}/apache-couchdb-*.tar.gz
cd apache-couchdb-*
. /usr/local/kerl/${KERL_VER}/activate
./configure --with-curl --spidermonkey-version 60
-make check || (build-aux/logfile-uploader.py && false)
+make check || (make build-report && false)
'''
pipeline {