1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00

fix ci features, target libsnark tests specifically

This commit is contained in:
schaeff 2021-06-29 12:07:07 +02:00
parent e3d3d91eab
commit ec294b7fc5
5 changed files with 9 additions and 8 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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