spacepackets/automation/Jenkinsfile

53 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-08-05 00:44:41 +02:00
pipeline {
2022-08-16 10:23:39 +02:00
agent {
dockerfile {
dir 'automation'
reuseNode true
}
}
2022-08-05 00:44:41 +02:00
stages {
stage('Clippy') {
steps {
sh 'cargo clippy'
}
}
2023-01-11 00:16:09 +01:00
stage('Docs') {
steps {
sh 'cargo +nightly doc --all-features'
}
}
2022-08-05 00:44:41 +02:00
stage('Rustfmt') {
steps {
2023-01-10 23:22:09 +01:00
sh 'cargo fmt --all --check'
2022-08-05 00:44:41 +02:00
}
}
2022-08-16 10:20:00 +02:00
stage('Test') {
steps {
2023-01-10 23:22:09 +01:00
sh 'cargo test --all-features'
2022-08-16 10:20:00 +02:00
}
}
2023-01-10 23:22:09 +01:00
stage('Check with all features') {
2022-08-05 00:44:41 +02:00
steps {
2023-01-10 23:22:09 +01:00
sh 'cargo check --all-features'
}
}
stage('Check with no features') {
steps {
sh 'cargo check --no-default-features'
2022-08-05 00:44:41 +02:00
}
}
2022-08-16 10:50:21 +02:00
stage('Check Cross Embedded Bare Metal') {
2022-08-16 10:28:06 +02:00
steps {
2022-08-16 10:38:06 +02:00
sh 'cargo check --target thumbv7em-none-eabihf --no-default-features'
2022-08-16 10:28:06 +02:00
}
}
2022-08-16 10:50:21 +02:00
stage('Check Cross Embedded Linux') {
steps {
sh 'cargo check --target armv7-unknown-linux-gnueabihf'
}
}
2022-08-05 00:44:41 +02:00
}
}