Skip to content

Commit

Permalink
Add test-msrv.sh script to test MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenroose committed Oct 6, 2024
1 parent ac21480 commit 781f5dd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test-msrv.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 781f5dd

Please sign in to comment.