Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contrib/test.sh updated #76

Merged
merged 1 commit into from
Apr 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contrib/depCargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This is an add-on that must be added to any dependency using this library

rgb = { path = "..", features = ["all"] }
rgb-core = { path = "..", features = ["all"] }

[workspace]
22 changes: 9 additions & 13 deletions contrib/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,8 @@ AS_DEPENDENCY=true
DO_LINT=true

# Library components
FEATURES="lnp"
# Cryptographic optionals
FEATURES="${FEATURES} keygen bulletproofs elgamal"
# Core rust optionals
FEATURES="${FEATURES} serde tokio async"
# Networking
FEATURES="${FEATURES} tor url websockets"
FEATURES="${FEATURES} tor,url"
# Full LNP strength, but without Serde
FEATURES="${FEATURES} lnp,websockets,url,tokio,async,keygen,bulletproofs"
FEATURES="cli serde"


if [ "$DO_COV" = true ]
then
Expand All @@ -37,12 +29,16 @@ do
cargo check --verbose --features="$feature" --all-targets
done

# Check that we can build services with different features
for feature in "server client embedded cli server,serde client,serde"
# Check that we can build rgb* crates
for crate in rgb20 rgb21 rgb22 rgb23
do
cargo check --manifest-path services/Cargo.toml --verbose --features="$feature"
cargo check --manifest-path $crate/Cargo.toml --verbose --features all
done

# Check that we can build rgb binary
# rgb binary is not building by following command and I am not sure why
cargo check --bins --features all --verbose

# Fuzz if told to
if [ "$DO_FUZZ" = true ]
then
Expand Down