This commit is contained in:
parent
d46f447273
commit
40536f4b30
34
files/config/Jenkinsfile
vendored
34
files/config/Jenkinsfile
vendored
@ -2,40 +2,18 @@ pipeline {
|
|||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Verify') {
|
stage('CI') {
|
||||||
steps {
|
steps {
|
||||||
withChecks(name: 'Rust Verify', includeStage: true) {
|
withChecks(name: 'Rust CI', includeStage: true) {
|
||||||
sh '''
|
sh '''
|
||||||
set -e
|
set -e
|
||||||
rustup component add clippy rustfmt llvm-tools-preview
|
rustc --version
|
||||||
cargo fmt --all -- --check
|
cargo --version
|
||||||
cargo clippy --all-targets --all-features -- -D warnings
|
rustup component add clippy rustfmt
|
||||||
|
make ci
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Test + Coverage') {
|
|
||||||
steps {
|
|
||||||
withChecks(name: 'Rust Test', includeStage: true) {
|
|
||||||
sh '''
|
|
||||||
set -e
|
|
||||||
cargo install cargo-llvm-cov --locked || true
|
|
||||||
cargo llvm-cov --all-features --workspace --cobertura --output-path coverage.xml
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Reports') {
|
|
||||||
steps {
|
|
||||||
recordCoverage(
|
|
||||||
tools: [[parser: 'COBERTURA', pattern: 'coverage.xml']],
|
|
||||||
id: 'rust-coverage',
|
|
||||||
name: 'Rust Coverage',
|
|
||||||
sourceCodeRetention: 'EVERY_BUILD'
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user