update Jenkins CI, add docs build

This commit is contained in:
Robin Müller 2023-01-11 00:39:12 +01:00
parent 1476f4eebe
commit 2b8a8dc7c8
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 14 additions and 26 deletions

View File

@ -7,5 +7,6 @@ RUN apt-get --yes upgrade
# tzdata is a dependency, won't install otherwise # tzdata is a dependency, won't install otherwise
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
RUN rustup target add thumbv6m-none-eabi && \ RUN rustup install nightly && \
rustup target add thumbv6m-none-eabi && \
rustup component add rustfmt clippy rustup component add rustfmt clippy

View File

@ -1,47 +1,34 @@
pipeline { pipeline {
agent any agent {
dockerfile {
dir 'automation'
reuseNode true
}
}
stages { stages {
stage('Clippy') { stage('Clippy') {
agent {
dockerfile {
dir 'automation'
reuseNode true
}
}
steps { steps {
sh 'cargo clippy' sh 'cargo clippy'
} }
} }
stage('Rustfmt') { stage('Rustfmt') {
agent {
dockerfile {
dir 'automation'
reuseNode true
}
}
steps { steps {
sh 'cargo fmt' sh 'cargo fmt'
} }
} }
stage('Check') { stage('Docs') {
agent { steps {
dockerfile { sh 'cargo +nightly doc'
dir 'automation'
reuseNode true
}
} }
}
stage('Check') {
steps { steps {
sh 'cargo check --target thumbv6m-none-eabi' sh 'cargo check --target thumbv6m-none-eabi'
} }
} }
stage('Check Examples') { stage('Check Examples') {
agent {
dockerfile {
dir 'automation'
reuseNode true
}
}
steps { steps {
sh 'cargo check --target thumbv6m-none-eabi --examples' sh 'cargo check --target thumbv6m-none-eabi --examples'
} }