Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
fix(ci/lint): fail lint stage if errors were found by clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Lubinets committed Mar 29, 2019
1 parent 6f0a89e commit d45fa18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Expand Up @@ -117,6 +117,7 @@ pipeline {
sh 'cargo check 2>&1 | tee rustc.build_log'
sh 'cargo clean'
sh 'cargo clippy 2>&1 | tee clippy.build_log'
sh 'if grep -q "^error" clippy.build_log; then echo "clippy found a severe error"; exit 1; fi'
}
post {
always {
Expand All @@ -132,7 +133,6 @@ pipeline {
}
}
}
// Disable rustfmt stage until formatting scheme is undefined
stage('Rustfmt') {
agent {
label 'macos'
Expand Down

0 comments on commit d45fa18

Please sign in to comment.