added contract tests to integration_test circleci job
This commit is contained in:
parent
a12201060e
commit
ae7ee29a5b
3 changed files with 13 additions and 16 deletions
|
@ -90,15 +90,15 @@ jobs:
|
||||||
name: Install git
|
name: Install git
|
||||||
command: apt-get update && apt-get upgrade -y && apt-get install -y git
|
command: apt-get update && apt-get upgrade -y && apt-get install -y git
|
||||||
- checkout
|
- checkout
|
||||||
# - run:
|
- run:
|
||||||
# name: Version information
|
name: Version information
|
||||||
# command: rustc --version; cargo --version; rustup --version
|
command: rustc --version; cargo --version; rustup --version
|
||||||
# - run:
|
- run:
|
||||||
# name: Calculate dependencies
|
name: Calculate dependencies
|
||||||
# command: cargo generate-lockfile
|
command: cargo generate-lockfile
|
||||||
# - restore_cache:
|
- restore_cache:
|
||||||
# keys:
|
keys:
|
||||||
# - v4-cargo-cache-{{ arch }}-{{ checksum "Cargo.lock" }}
|
- v4-cargo-cache-{{ arch }}-{{ checksum "Cargo.lock" }}
|
||||||
- run:
|
- run:
|
||||||
name: Install libsnark prerequisites
|
name: Install libsnark prerequisites
|
||||||
command: ./scripts/install_libsnark_prerequisites.sh
|
command: ./scripts/install_libsnark_prerequisites.sh
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
# Exit if any subcommand fails
|
# Exit if any subcommand fails
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# cargo test --release -- --ignored
|
cargo test --release -- --ignored
|
||||||
|
|
||||||
# if [ -n "$WITH_LIBSNARK" ]; then
|
if [ -n "$WITH_LIBSNARK" ]; then
|
||||||
# cargo -Z package-features test --release --package zokrates_cli --features="libsnark" -- --ignored
|
cargo -Z package-features test --release --package zokrates_cli --features="libsnark" -- --ignored
|
||||||
ls
|
ls
|
||||||
cd target/debug/
|
cd target/debug/
|
||||||
|
|
||||||
|
@ -57,4 +57,4 @@ set -e
|
||||||
node zokrates_core/tests/integration/test.js pghr13 v2
|
node zokrates_core/tests/integration/test.js pghr13 v2
|
||||||
node zokrates_core/tests/integration/test.js gm17 v1
|
node zokrates_core/tests/integration/test.js gm17 v1
|
||||||
node zokrates_core/tests/integration/test.js gm17 v2
|
node zokrates_core/tests/integration/test.js gm17 v2
|
||||||
# fi
|
fi
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
var fs = require("fs");
|
var fs = require("fs");
|
||||||
let Web3 = require('web3');
|
let Web3 = require('web3');
|
||||||
const solc = require('solc');
|
const solc = require('solc');
|
||||||
console.log(process.argv)
|
|
||||||
const format = process.argv[2]
|
const format = process.argv[2]
|
||||||
const abiVersion = process.argv[3];
|
const abiVersion = process.argv[3];
|
||||||
const CONTRACT_NAME = format + "-" + abiVersion + "-verifier.sol";
|
const CONTRACT_NAME = format + "-" + abiVersion + "-verifier.sol";
|
||||||
const web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545'));
|
const web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545'));
|
||||||
console.log(__dirname);
|
|
||||||
console.log(fs.existsSync("target/"));
|
|
||||||
console.log(CONTRACT_NAME)
|
console.log(CONTRACT_NAME)
|
||||||
|
|
||||||
// -----Compile contract-----
|
// -----Compile contract-----
|
||||||
|
|
Loading…
Reference in a new issue