-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test-msrv.sh script to test MSRV
- Loading branch information
1 parent
ac21480
commit 781f5dd
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |