added test stage in jenkinsfile
Rust/spacepackets/pipeline/head There was a failure building this commit Details

This commit is contained in:
Robin Müller 2022-08-16 10:20:00 +02:00
parent 388a8ba616
commit 41fa073c74
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 15 additions and 0 deletions

View File

@ -7,4 +7,8 @@ RUN apt-get --yes upgrade
# tzdata is a dependency, won't install otherwise
ARG DEBIAN_FRONTEND=noninteractive
# set CROSS_CONTAINER_IN_CONTAINER to inform `cross` that it is executed from within a container
ENV CROSS_CONTAINER_IN_CONTAINER=true
RUN rustup component add rustfmt clippy
RUN cargo install cross

View File

@ -24,6 +24,17 @@ pipeline {
sh 'cargo fmt'
}
}
stage('Test') {
agent {
dockerfile {
dir 'automation'
reuseNode true
}
}
steps {
sh 'cargo check'
}
}
stage('Check') {
agent {
dockerfile {