From 952bcb11ed9defb390ab6ac5b3a3198804501e89 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 14 Jun 2023 18:33:21 +0100 Subject: [PATCH 1/2] CI: add script to test every crate with default features --- maint/every-crate | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 maint/every-crate diff --git a/maint/every-crate b/maint/every-crate new file mode 100755 index 000000000..18ee28d43 --- /dev/null +++ b/maint/every-crate @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +# +# Run `cargo test` for every crate with the default featues + +set -euo pipefail + +: "${CARGO:=cargo}" + +x () { + echo ": $*" + "$@" +} + +for crate in $(maint/list_crates); do + echo ==================== "$crate" ==================== + # allow $CARGO to contain multiple words + # shellcheck disable=SC2086 + x $CARGO test -p "$crate" --all-targets +done From eeaae5a3bf2425e2426e3515581f4feb765a9a34 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 14 Jun 2023 18:33:32 +0100 Subject: [PATCH 2/2] CI: test every crate with default features --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ee7c0e152..1543b7d7c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -318,6 +318,15 @@ integration-shadow: - amd64 - tpa +# TODO when this test passes on main, delete the allow_failures line +every-crate: + stage: test + image: rust:latest + allow_failure: true + script: + - apt-get update && apt-get install -y python3-toml python-is-python3 + - ./maint/every-crate + matrix-test: stage: test image: rust:latest