44 lines
939 B
Groovy
44 lines
939 B
Groovy
pipeline {
|
|
agent {
|
|
dockerfile {
|
|
dir 'automation'
|
|
reuseNode true
|
|
}
|
|
}
|
|
|
|
stages {
|
|
stage('Rust Toolchain Info') {
|
|
steps {
|
|
sh 'rustc --version'
|
|
}
|
|
}
|
|
stage('Clippy') {
|
|
steps {
|
|
sh 'cargo clippy --target thumbv7em-none-eabihf'
|
|
}
|
|
}
|
|
stage('Rustfmt') {
|
|
steps {
|
|
sh 'cargo fmt'
|
|
}
|
|
}
|
|
stage('Docs') {
|
|
steps {
|
|
sh """
|
|
cargo +nightly doc --all-features --config 'build.rustdocflags=["--cfg", "docs_rs"]'
|
|
"""
|
|
}
|
|
}
|
|
stage('Check') {
|
|
steps {
|
|
sh 'cargo check --target thumbv7em-none-eabihf'
|
|
}
|
|
}
|
|
stage('Check Examples') {
|
|
steps {
|
|
sh 'cargo check --target thumbv7em-none-eabihf --examples'
|
|
}
|
|
}
|
|
}
|
|
}
|