spacepackets/automation/Jenkinsfile

43 lines
890 B
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'
}
}
stage('Rustfmt') {
steps {
sh 'cargo fmt'
}
}
2022-08-16 10:20:00 +02:00
stage('Test') {
steps {
2022-08-16 10:23:39 +02:00
sh 'cargo test'
2022-08-16 10:20:00 +02:00
}
}
2022-08-05 00:44:41 +02:00
stage('Check') {
steps {
sh 'cargo check'
}
}
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
}
}