1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +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" }} - v4-cargo-cache-{{ arch }}-{{ checksum "Cargo.lock" }}
- run: - run:
name: Run integration tests 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: deploy:
docker: docker:
- image: circleci/python:latest-node - image: circleci/python:latest-node

View file

@ -6,5 +6,5 @@ set -e
if [ -n "$WITH_LIBSNARK" ]; then if [ -n "$WITH_LIBSNARK" ]; then
cargo build --package zokrates_cli --features="libsnark" cargo build --package zokrates_cli --features="libsnark"
else else
cargo build cargo build --package zokrates_cli
fi fi

View file

@ -6,5 +6,5 @@ set -e
if [ -n "$WITH_LIBSNARK" ]; then if [ -n "$WITH_LIBSNARK" ]; then
cargo build --release --package zokrates_cli --features="libsnark" cargo build --release --package zokrates_cli --features="libsnark"
else else
cargo build --release cargo build --release --package zokrates_cli
fi fi

View file

@ -6,5 +6,5 @@ set -e
if [ -n "$WITH_LIBSNARK" ]; then if [ -n "$WITH_LIBSNARK" ]; then
cargo test --release --package zokrates_cli --features="libsnark" -- --ignored cargo test --release --package zokrates_cli --features="libsnark" -- --ignored
else else
cargo test --release -- --ignored cargo test --release --package zokrates_cli -- --ignored
fi fi

View file

@ -4,7 +4,8 @@
set -e set -e
if [ -n "$WITH_LIBSNARK" ]; then if [ -n "$WITH_LIBSNARK" ]; then
cargo test --release --package zokrates_cli --features="libsnark" # run specifically the libsnark tests inside zokrates_core
else cargo test --release --package zokrates_core --features="libsnark" libsnark
cargo test --release
fi # run all tests without libsnark on
cargo test --release