From 2b8a8dc7c862baa13a27debdca40ef1ee3670f05 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 11 Jan 2023 00:39:12 +0100 Subject: [PATCH] update Jenkins CI, add docs build --- automation/Dockerfile | 3 ++- automation/Jenkinsfile | 37 ++++++++++++------------------------- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/automation/Dockerfile b/automation/Dockerfile index 5fb8a3d..e1a7baf 100644 --- a/automation/Dockerfile +++ b/automation/Dockerfile @@ -7,5 +7,6 @@ RUN apt-get --yes upgrade # tzdata is a dependency, won't install otherwise 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 diff --git a/automation/Jenkinsfile b/automation/Jenkinsfile index c67b034..9a27623 100644 --- a/automation/Jenkinsfile +++ b/automation/Jenkinsfile @@ -1,47 +1,34 @@ pipeline { - agent any + agent { + dockerfile { + dir 'automation' + reuseNode true + } + } + stages { stage('Clippy') { - agent { - dockerfile { - dir 'automation' - reuseNode true - } - } steps { sh 'cargo clippy' } } stage('Rustfmt') { - agent { - dockerfile { - dir 'automation' - reuseNode true - } - } steps { sh 'cargo fmt' } } - stage('Check') { - agent { - dockerfile { - dir 'automation' - reuseNode true - } + stage('Docs') { + steps { + sh 'cargo +nightly doc' } + } + stage('Check') { steps { sh 'cargo check --target thumbv6m-none-eabi' } } stage('Check Examples') { - agent { - dockerfile { - dir 'automation' - reuseNode true - } - } steps { sh 'cargo check --target thumbv6m-none-eabi --examples' }