Jenkins re-enable clang-tidy and update .clang-tidy

- device/Device: fix explicit constructor and uninitialized fields
 - systemcmds/motor_test: update NULL to nullptr
This commit is contained in:
Daniel Agar
2019-10-27 17:19:11 -04:00
committed by GitHub
parent 7b94c501cd
commit ae27dd60a6
6 changed files with 266 additions and 190 deletions

41
Jenkinsfile vendored
View File

@@ -305,26 +305,27 @@ pipeline {
}
}
// stage('Clang tidy') {
// agent {
// docker {
// image 'px4io/px4-dev-clang:2019-10-24'
// args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
// }
// }
// steps {
// sh 'export'
// retry (3) {
// sh 'make distclean'
// sh 'make clang-tidy-quiet'
// }
// }
// post {
// always {
// sh 'make distclean'
// }
// }
// }
stage('Clang tidy') {
agent {
docker {
image 'px4io/px4-dev-clang:2019-10-24'
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
}
}
steps {
sh 'export'
sh 'make distclean'
sh 'git fetch --tags'
retry (3) {
sh 'make clang-tidy-quiet'
}
}
post {
always {
sh 'make distclean'
}
}
}
stage('Cppcheck') {
agent {