From d3f5c06ba7611739a5717ee5e3c2b975fade3a79 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 4 Aug 2018 13:35:03 -0400 Subject: [PATCH] Jenkins add unit test build with address sanitizier --- Jenkinsfile | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 73c69e89ef..a25e769071 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -219,31 +219,34 @@ pipeline { steps { sh 'export' sh 'make distclean' + sh 'ccache -z' sh 'make posix_sitl_default test_results_junit' + sh 'ccache -s' junit 'build/posix_sitl_default/JUnitTestResults.xml' sh 'make distclean' } } - // TODO: PX4 requires clean shutdown first - // stage('unit tests (address sanitizer)') { - // agent { - // docker { - // image 'px4io/px4-dev-base:2018-07-19' - // args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw' - // } - // } - // environment { - // PX4_ASAN = 1 - // ASAN_OPTIONS = "color=always:check_initialization_order=1:detect_stack_use_after_return=1" - // } - // steps { - // sh 'export' - // sh 'make distclean' - // sh 'make tests' - // sh 'make distclean' - // } - // } + stage('unit tests (address sanitizer)') { + agent { + docker { + image 'px4io/px4-dev-base:2018-07-19' + args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw' + } + } + environment { + PX4_ASAN = 1 + ASAN_OPTIONS = "color=always:check_initialization_order=1:detect_stack_use_after_return=1" + } + steps { + sh 'export' + sh 'make distclean' + sh 'ccache -z' + sh 'make tests || true' // always pass for now, TODO: PX4 sitl clean shutdown + sh 'ccache -s' + sh 'make distclean' + } + } } // parallel } // stage Test