Skip to content

Commit

Permalink
contrib/test.sh updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rajarshimaitra committed Mar 30, 2021
1 parent 89cd91e commit 82fd887
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
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

0 comments on commit 82fd887

Please sign in to comment.