va108xx-rs/automation/Jenkinsfile

46 lines
1.2 KiB
Plaintext
Raw Normal View History

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'
}
}
stage('Rustfmt') {
2024-06-16 16:32:52 +02:00
steps {
sh 'cargo fmt'
}
}
stage('Docs') {
2024-06-16 16:32:52 +02:00
steps {
sh """
RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p va108xx
RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p va108xx-hal
RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p vorago-reb1
2024-06-16 16:32:52 +02:00
"""
}
}
stage('Check') {
2024-06-16 16:32:52 +02:00
steps {
sh 'cargo check --target thumbv6m-none-eabi'
}
}
stage('Check Examples') {
2024-06-16 16:32:52 +02:00
steps {
sh 'cargo check --target thumbv6m-none-eabi --examples'
}
}
}
}