From 6e5a563c06a49c9e15041d149c23c3caf7c859b2 Mon Sep 17 00:00:00 2001 From: debris Date: Tue, 1 Aug 2017 12:32:34 +0200 Subject: [PATCH] fixed scripts and reverted ipfs comment --- ipfs/src/route.rs | 3 +-- scripts/cov.sh | 2 +- scripts/doc.sh | 2 +- scripts/hook.sh | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ipfs/src/route.rs b/ipfs/src/route.rs index 40edc8de0..b034c2d4c 100644 --- a/ipfs/src/route.rs +++ b/ipfs/src/route.rs @@ -119,8 +119,7 @@ mod tests { use ethcore::client::TestBlockChainClient; fn get_mocked_handler() -> IpfsHandler { - //IpfsHandler::new(None, None, Arc::new(TestBlockChainClient::new())) - unimplemented!(); + IpfsHandler::new(None, None, Arc::new(TestBlockChainClient::new())) } #[test] diff --git a/scripts/cov.sh b/scripts/cov.sh index 8d618e2c3..9be89a3df 100755 --- a/scripts/cov.sh +++ b/scripts/cov.sh @@ -20,7 +20,7 @@ if ! type $KCOV > /dev/null; then exit 1 fi -RUSTFLAGS="-C link-dead-code" cargo test --all --exclude ipfs --exclude evmjit --no-run || exit $? +RUSTFLAGS="-C link-dead-code" cargo test --all --exclude parity-ipfs-api --exclude evmjit --no-run || exit $? KCOV_TARGET="target/cov" diff --git a/scripts/doc.sh b/scripts/doc.sh index 8174ed5d6..ae209ad46 100755 --- a/scripts/doc.sh +++ b/scripts/doc.sh @@ -1,5 +1,5 @@ #!/bin/sh # generate documentation only for partiy and ethcore libraries -cargo doc --no-deps --verbose --all --exclude ipfs --exclude evmjit && +cargo doc --no-deps --verbose --all --exclude parity-ipfs-api --exclude evmjit && echo '' > target/doc/index.html diff --git a/scripts/hook.sh b/scripts/hook.sh index c8977aacf..cb8085a02 100755 --- a/scripts/hook.sh +++ b/scripts/hook.sh @@ -7,6 +7,6 @@ echo "set -e" >> $FILE # Run release build echo "cargo build --features dev" >> $FILE # Build tests -echo "cargo test --no-run --features dev --all --exclude ipfs --exclude evmjit" >> $FILE +echo "cargo test --no-run --features dev --all --exclude parity-ipfs-api --exclude evmjit" >> $FILE echo "" >> $FILE chmod +x $FILE