From 2973df573af33cdaa240eddaf879cd277ac9f5ba Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Mon, 14 Jan 2019 17:55:45 +0100 Subject: [PATCH] Run the tests with WASM enabled --- .circleci/config.yml | 3 +++ zokrates_core/Cargo.toml | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 03a146a2..7b8f4e07 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,6 +30,9 @@ jobs: - run: name: Run tests command: WITH_LIBSNARK=1 LIBSNARK_SOURCE_PATH=$HOME/libsnark RUSTFLAGS="-D warnings" cargo test --release -- --test-threads=1 + - run: + name: Run tests with WASM enabled + command: cd zokrates_core && cargo test --release --features wasm -- --test-threads=1 - run: name: Run integration tests command: WITH_LIBSNARK=1 LIBSNARK_SOURCE_PATH=$HOME/libsnark RUSTFLAGS="-D warnings" cargo test --release -- --ignored diff --git a/zokrates_core/Cargo.toml b/zokrates_core/Cargo.toml index 1cf4c0ac..1ab5fdc8 100644 --- a/zokrates_core/Cargo.toml +++ b/zokrates_core/Cargo.toml @@ -9,6 +9,7 @@ build = "build.rs" [features] default = [] libsnark = [] +wasm = [] [dependencies] libc = "0.2.0" @@ -36,4 +37,4 @@ assert_cli = "0.5" [build-dependencies] cc = { version = "1.0", features = ["parallel"] } cmake = "0.1.31" -parity-wasm = "0.35.3" \ No newline at end of file +parity-wasm = "0.35.3"