2021-12-07 00:31:51 +01: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-09-17 18:07:45 +02:00
|
|
|
RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p vorago-peb1
|
|
|
|
RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p va416xx-hal --features va41630
|
|
|
|
RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p va416xx
|
2021-12-07 00:31:51 +01:00
|
|
|
"""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Check') {
|
|
|
|
steps {
|
|
|
|
sh 'cargo check --target thumbv7em-none-eabihf'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Check Examples') {
|
|
|
|
steps {
|
2024-07-19 06:19:28 +02:00
|
|
|
sh """
|
|
|
|
cargo check --target thumbv7em-none-eabihf --examples
|
|
|
|
"""
|
2021-12-07 00:31:51 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|