Jenkins temporarily disable address sanitizer mission test and test codecov

This commit is contained in:
Daniel Agar
2018-05-29 09:20:54 -07:00
committed by Lorenz Meier
parent 77cea8844f
commit 2fbe1428a3
Vendored
+44 -42
View File
@@ -264,49 +264,51 @@ pipeline {
} }
} }
stage('tests (address sanitizer)') { // TODO: PX4 requires clean shutdown first
agent { // stage('tests (address sanitizer)') {
docker { // agent {
image 'px4io/px4-dev-base:2018-03-30' // docker {
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw' // image 'px4io/px4-dev-base:2018-03-30'
} // args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
} // }
environment { // }
PX4_ASAN = 1 // environment {
ASAN_OPTIONS = "color=always:check_initialization_order=1:detect_stack_use_after_return=1" // PX4_ASAN = 1
} // ASAN_OPTIONS = "color=always:check_initialization_order=1:detect_stack_use_after_return=1"
steps { // }
sh 'export' // steps {
sh 'make distclean' // sh 'export'
sh 'make tests' // sh 'make distclean'
sh 'make distclean' // sh 'make tests'
} // sh 'make distclean'
} // }
// }
stage('tests (code coverage)') { // TODO: test and re-enable once GDB is available in px4-dev-ros
agent { // stage('tests (code coverage)') {
docker { // agent {
image 'px4io/px4-dev-ros:2018-03-30' // docker {
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw' // image 'px4io/px4-dev-ros:2018-03-30'
} // args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
} // }
steps { // }
sh 'export' // steps {
sh 'make distclean' // sh 'export'
sh 'ulimit -c unlimited; make tests_coverage' // sh 'make distclean'
sh 'ls' // sh 'ulimit -c unlimited; make tests_coverage'
withCredentials([string(credentialsId: 'FIRMWARE_CODECOV_TOKEN', variable: 'CODECOV_TOKEN')]) { // sh 'ls'
sh 'curl -s https://codecov.io/bash | bash -s' // withCredentials([string(credentialsId: 'FIRMWARE_CODECOV_TOKEN', variable: 'CODECOV_TOKEN')]) {
} // sh 'curl -s https://codecov.io/bash | bash -s'
sh 'make distclean' // }
} // sh 'make distclean'
post { // }
failure { // post {
sh('find . -name core') // failure {
sh('gdb --batch --quiet -ex "thread apply all bt full" -ex "quit" build/posix_sitl_default/px4 core') // sh('find . -name core')
} // sh('gdb --batch --quiet -ex "thread apply all bt full" -ex "quit" build/posix_sitl_default/px4 core')
} // }
} // }
// }
stage('check stack') { stage('check stack') {
agent { agent {