fix ci features, target libsnark tests specifically
This commit is contained in:
parent
e3d3d91eab
commit
ec294b7fc5
5 changed files with 9 additions and 8 deletions
|
@ -106,7 +106,7 @@ jobs:
|
|||
- v4-cargo-cache-{{ arch }}-{{ checksum "Cargo.lock" }}
|
||||
- run:
|
||||
name: Run integration tests
|
||||
command: WITH_LIBSNARK=1 RUSTFLAGS="-D warnings" ./full_test.sh
|
||||
command: WITH_LIBSNARK=1 RUSTFLAGS="-D warnings" ./integration_test.sh
|
||||
deploy:
|
||||
docker:
|
||||
- image: circleci/python:latest-node
|
||||
|
|
2
build.sh
2
build.sh
|
@ -6,5 +6,5 @@ set -e
|
|||
if [ -n "$WITH_LIBSNARK" ]; then
|
||||
cargo build --package zokrates_cli --features="libsnark"
|
||||
else
|
||||
cargo build
|
||||
cargo build --package zokrates_cli
|
||||
fi
|
|
@ -6,5 +6,5 @@ set -e
|
|||
if [ -n "$WITH_LIBSNARK" ]; then
|
||||
cargo build --release --package zokrates_cli --features="libsnark"
|
||||
else
|
||||
cargo build --release
|
||||
cargo build --release --package zokrates_cli
|
||||
fi
|
||||
|
|
|
@ -6,5 +6,5 @@ set -e
|
|||
if [ -n "$WITH_LIBSNARK" ]; then
|
||||
cargo test --release --package zokrates_cli --features="libsnark" -- --ignored
|
||||
else
|
||||
cargo test --release -- --ignored
|
||||
cargo test --release --package zokrates_cli -- --ignored
|
||||
fi
|
9
test.sh
9
test.sh
|
@ -4,7 +4,8 @@
|
|||
set -e
|
||||
|
||||
if [ -n "$WITH_LIBSNARK" ]; then
|
||||
cargo test --release --package zokrates_cli --features="libsnark"
|
||||
else
|
||||
cargo test --release
|
||||
fi
|
||||
# run specifically the libsnark tests inside zokrates_core
|
||||
cargo test --release --package zokrates_core --features="libsnark" libsnark
|
||||
|
||||
# run all tests without libsnark on
|
||||
cargo test --release
|
||||
|
|
Loading…
Reference in a new issue