Jenkins temporarily disable coverage and clang-tidy

- check format first to reduce build utilization
This commit is contained in:
Daniel Agar
2017-12-06 19:25:15 -05:00
parent 8d39f4e4a1
commit 2fa1702c71

100
Jenkinsfile vendored
View File

@@ -6,6 +6,19 @@ pipeline {
timestamps() timestamps()
} }
stages { stages {
stage('Quality Checks') {
agent {
docker {
image 'px4io/px4-dev-base:2017-10-23'
args '--env CCACHE_DIR=/tmp/ccache --volume=/tmp/ccache:/tmp/ccache:rw --env CI=true'
}
}
steps {
sh 'make check_format'
}
}
stage('Build') { stage('Build') {
steps { steps {
script { script {
@@ -116,31 +129,24 @@ pipeline {
} }
} }
} }
stage('Test') { stage('Test') {
parallel { parallel {
stage('check_format') {
agent { // temporarily disabled until build resources are available
docker { //stage('clang-tidy') {
image 'px4io/px4-dev-base:2017-10-23' // agent {
args '--env CCACHE_DIR=/tmp/ccache --volume=/tmp/ccache:/tmp/ccache:rw --env CI=true' // docker {
} // image 'px4io/px4-dev-clang:2017-10-23'
} // args '--env CCACHE_DIR=/tmp/ccache --volume=/tmp/ccache:/tmp/ccache:rw --env CI=true'
steps { // }
sh 'make check_format' // }
} // steps {
} // sh 'make clean'
stage('clang-tidy') { // sh 'make clang-tidy-quiet'
agent { // }
docker { //}
image 'px4io/px4-dev-clang:2017-10-23'
args '--env CCACHE_DIR=/tmp/ccache --volume=/tmp/ccache:/tmp/ccache:rw --env CI=true'
}
}
steps {
sh 'make clean'
sh 'make clang-tidy-quiet'
}
}
stage('tests') { stage('tests') {
agent { agent {
docker { docker {
@@ -154,29 +160,33 @@ pipeline {
junit 'build/posix_sitl_default/JUnitTestResults.xml' junit 'build/posix_sitl_default/JUnitTestResults.xml'
} }
} }
stage('tests coverage') {
agent { // temporarily disabled until stable
docker { //stage('tests coverage') {
image 'px4io/px4-dev-base:2017-10-23' // agent {
args '--env CCACHE_DIR=/tmp/ccache --volume=/tmp/ccache:/tmp/ccache:rw --env CI=true' // docker {
} // image 'px4io/px4-dev-base:2017-10-23'
} // args '--env CCACHE_DIR=/tmp/ccache --volume=/tmp/ccache:/tmp/ccache:rw --env CI=true'
steps { // }
sh 'make clean' // }
sh 'make tests_coverage' // steps {
// publish html // sh 'make clean'
publishHTML target: [ // sh 'make tests_coverage'
allowMissing: false, // // publish html
alwaysLinkToLastBuild: false, // publishHTML target: [
keepAll: true, // allowMissing: false,
reportDir: 'build/posix_sitl_default/coverage-html', // alwaysLinkToLastBuild: false,
reportFiles: '*', // keepAll: true,
reportName: 'Coverage Report' // reportDir: 'build/posix_sitl_default/coverage-html',
] // reportFiles: '*',
} // reportName: 'Coverage Report'
} // ]
// }
//}
} }
} }
stage('Generate Metadata') { stage('Generate Metadata') {
agent { agent {
docker { docker {
@@ -192,6 +202,7 @@ pipeline {
archive 'modules/*.md' archive 'modules/*.md'
} }
} }
stage('S3 Upload') { stage('S3 Upload') {
agent { agent {
docker { docker {
@@ -205,5 +216,6 @@ pipeline {
sh 'echo "uploading to S3"' sh 'echo "uploading to S3"'
} }
} }
} }
} }