2024-06-16 16:16:45 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
dir 'automation'
|
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Rust Toolchain Info') {
|
|
|
|
steps {
|
|
|
|
sh 'rustc --version'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Clippy') {
|
2024-06-16 16:32:52 +02:00
|
|
|
steps {
|
|
|
|
sh 'cargo clippy --target thumbv6m-none-eabi'
|
|
|
|
}
|
2024-06-16 16:16:45 +02:00
|
|
|
}
|
|
|
|
stage('Rustfmt') {
|
2024-06-16 16:32:52 +02:00
|
|
|
steps {
|
|
|
|
sh 'cargo fmt'
|
|
|
|
}
|
2024-06-16 16:16:45 +02:00
|
|
|
}
|
|
|
|
stage('Docs') {
|
2024-06-16 16:32:52 +02:00
|
|
|
steps {
|
|
|
|
sh """
|
2024-06-26 22:58:12 +02:00
|
|
|
RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc --all-features
|
2024-06-16 16:32:52 +02:00
|
|
|
"""
|
|
|
|
}
|
2024-06-16 16:16:45 +02:00
|
|
|
}
|
|
|
|
stage('Check') {
|
2024-06-16 16:32:52 +02:00
|
|
|
steps {
|
|
|
|
sh 'cargo check --target thumbv6m-none-eabi'
|
|
|
|
}
|
2024-06-16 16:16:45 +02:00
|
|
|
}
|
|
|
|
stage('Check Examples') {
|
2024-06-16 16:32:52 +02:00
|
|
|
steps {
|
|
|
|
sh 'cargo check --target thumbv6m-none-eabi --examples'
|
|
|
|
}
|
2024-06-16 16:16:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|