forked from Archive/PX4-Autopilot
Jenkins add unit test build with address sanitizier
This commit is contained in:
parent
36ff6202a9
commit
d3f5c06ba7
|
@ -219,31 +219,34 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
sh 'export'
|
sh 'export'
|
||||||
sh 'make distclean'
|
sh 'make distclean'
|
||||||
|
sh 'ccache -z'
|
||||||
sh 'make posix_sitl_default test_results_junit'
|
sh 'make posix_sitl_default test_results_junit'
|
||||||
|
sh 'ccache -s'
|
||||||
junit 'build/posix_sitl_default/JUnitTestResults.xml'
|
junit 'build/posix_sitl_default/JUnitTestResults.xml'
|
||||||
sh 'make distclean'
|
sh 'make distclean'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: PX4 requires clean shutdown first
|
stage('unit tests (address sanitizer)') {
|
||||||
// stage('unit tests (address sanitizer)') {
|
agent {
|
||||||
// agent {
|
docker {
|
||||||
// docker {
|
image 'px4io/px4-dev-base:2018-07-19'
|
||||||
// image 'px4io/px4-dev-base:2018-07-19'
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
||||||
// args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
}
|
||||||
// }
|
}
|
||||||
// }
|
environment {
|
||||||
// environment {
|
PX4_ASAN = 1
|
||||||
// PX4_ASAN = 1
|
ASAN_OPTIONS = "color=always:check_initialization_order=1:detect_stack_use_after_return=1"
|
||||||
// ASAN_OPTIONS = "color=always:check_initialization_order=1:detect_stack_use_after_return=1"
|
}
|
||||||
// }
|
steps {
|
||||||
// steps {
|
sh 'export'
|
||||||
// sh 'export'
|
sh 'make distclean'
|
||||||
// sh 'make distclean'
|
sh 'ccache -z'
|
||||||
// sh 'make tests'
|
sh 'make tests || true' // always pass for now, TODO: PX4 sitl clean shutdown
|
||||||
// sh 'make distclean'
|
sh 'ccache -s'
|
||||||
// }
|
sh 'make distclean'
|
||||||
// }
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} // parallel
|
} // parallel
|
||||||
} // stage Test
|
} // stage Test
|
||||||
|
|
Loading…
Reference in New Issue