diff --git a/automation/Dockerfile b/automation/Dockerfile index 3e84222..48fc510 100644 --- a/automation/Dockerfile +++ b/automation/Dockerfile @@ -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 diff --git a/automation/Jenkinsfile b/automation/Jenkinsfile index e3081b9..1d792b0 100644 --- a/automation/Jenkinsfile +++ b/automation/Jenkinsfile @@ -24,6 +24,17 @@ pipeline { sh 'cargo fmt' } } + stage('Test') { + agent { + dockerfile { + dir 'automation' + reuseNode true + } + } + steps { + sh 'cargo check' + } + } stage('Check') { agent { dockerfile {