2024-06-25 10:11:12 +02:00
|
|
|
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 """
|
2024-06-25 16:12:09 +02:00
|
|
|
RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc --all-features
|
2024-06-25 10:11:12 +02:00
|
|
|
"""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Check') {
|
|
|
|
steps {
|
|
|
|
sh 'cargo check --target thumbv7em-none-eabihf'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Check Examples') {
|
|
|
|
steps {
|
|
|
|
sh 'cargo check --target thumbv7em-none-eabihf --examples'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|