From 57adb619b32167371fdddb2fd5541a4920801983 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 4 Apr 2024 13:13:43 +0200 Subject: [PATCH] use cargo nextest in CI for testing --- automation/Dockerfile | 3 +++ automation/Jenkinsfile | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/automation/Dockerfile b/automation/Dockerfile index 9cee2c3..7d53a05 100644 --- a/automation/Dockerfile +++ b/automation/Dockerfile @@ -15,7 +15,10 @@ RUN rustup install nightly && \ rustup target add thumbv7em-none-eabihf armv7-unknown-linux-gnueabihf && \ rustup component add rustfmt clippy llvm-tools-preview +# Get grcov RUN curl -sSL https://github.com/mozilla/grcov/releases/download/v0.8.19/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar -xj --directory /usr/local/bin +# Get nextest +RUN curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin # SSH stuff to allow deployment to doc server RUN adduser --uid 114 jenkins diff --git a/automation/Jenkinsfile b/automation/Jenkinsfile index aa6f7f1..be6696c 100644 --- a/automation/Jenkinsfile +++ b/automation/Jenkinsfile @@ -31,7 +31,8 @@ pipeline { } stage('Test') { steps { - sh 'cargo test --all-features' + sh 'cargo nextest r --all-features' + sh 'cargo test --doc' } } stage('Check with all features') {