From 781f5dd5af19f016f59bad50f3769d2889e7a266 Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Sun, 6 Oct 2024 23:54:22 +0100 Subject: [PATCH] Add test-msrv.sh script to test MSRV --- test-msrv.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 test-msrv.sh diff --git a/test-msrv.sh b/test-msrv.sh new file mode 100755 index 0000000..e0ecac7 --- /dev/null +++ b/test-msrv.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +MSRV="1.41.1" + +CMD="${RUSTUP:-rustup} run ${MSRV}" + +rm -f Cargo.lock +$CMD cargo generate-lockfile +$CMD cargo update --package "bitcoin_hashes" --precise "0.12.0" +$CMD cargo update --package "rand" --precise "0.6.5" + +$CMD cargo build --no-default-features +$CMD cargo test --no-default-features +$CMD cargo build --no-default-features --features all-languages +$CMD cargo test --no-default-features --features all-languages +$CMD cargo build --features rand_core,all-languages +$CMD cargo test --features rand_core,all-languages +$CMD cargo build --features rand,all-languages +$CMD cargo test --features rand,all-languages