-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We now have two features that require testing in various combinations, add a `contrib/test.sh` script to do the testing and use it in the `Test` CI job. Add names to other steps in the job to improve clarity.
- Loading branch information
Showing
2 changed files
with
38 additions
and
9 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
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,32 @@ | ||
#!/bin/sh | ||
# | ||
# CI test script for rust-bech32. | ||
# | ||
# The "strict" feature is used to configure cargo to deny all warnings, always use it in test runs. | ||
|
||
set -ex | ||
|
||
# Sanity, check tools exist. | ||
cargo --version | ||
rustc --version | ||
|
||
# Sanity, first check with default features. | ||
|
||
cargo build | ||
cargo test | ||
|
||
# Sanity, build with no features. | ||
|
||
cargo build --no-default-features --features="strict" | ||
|
||
# Check "alloc" feature alone. | ||
|
||
cargo build --no-default-features --features="strict std" | ||
cargo test --no-default-features --features="strict std" | ||
|
||
# Check "std" feature (implies "alloc"). | ||
|
||
cargo build --no-default-features --features="strict alloc" | ||
cargo test --no-default-features --features="strict alloc" | ||
|
||
exit 0 |