From 0531811fafecabd3859a10a0668410afa6367bbd Mon Sep 17 00:00:00 2001 From: dkijania Date: Tue, 28 Apr 2020 23:54:16 +0200 Subject: [PATCH 1/3] Added new build for mockchain build with all features enable only property test api building added implicit build for mockchain features fix syntax remove features from debug build --- .circleci/config.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e56185270..6e1d31f58 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -103,6 +103,29 @@ jobs: environment: RUST_BACKTRACE: 1 command: cargo test --verbose --frozen + + test_mockchain_all_features: + docker: + - image: rustlang/rust:nightly + working_directory: /mnt/crate + steps: + - checkout + - attach_workspace: + at: /mnt/crate + - restore_cache: + keys: + - cargo-v3-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }} + - run: + name: Print version information + command: rustc --version; cargo --version + - run: + name: Build + command: cargo build --tests --verbose --frozen -p chain-impl-mockchain --all-features + - run: + name: Test + environment: + RUST_BACKTRACE: 1 + command: cargo test --verbose --frozen -p chain-impl-mockchain --all-features workflows: version: 2 @@ -122,3 +145,7 @@ workflows: requires: #- rustfmt - cargo_fetch + - test_mockchain_all_features: + requires: + #- rustfmt + - cargo_fetch From 6af5aec0607d7e81e42ac11589d8791636a15da0 Mon Sep 17 00:00:00 2001 From: dkijania Date: Wed, 29 Apr 2020 00:06:43 +0200 Subject: [PATCH 2/3] remove unused bench module --- chain-impl-mockchain/src/block/mod.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/chain-impl-mockchain/src/block/mod.rs b/chain-impl-mockchain/src/block/mod.rs index 6baf5364b..3f7acff3a 100644 --- a/chain-impl-mockchain/src/block/mod.rs +++ b/chain-impl-mockchain/src/block/mod.rs @@ -177,20 +177,3 @@ impl property::HasHeader for Block { self.header.clone() } } - -#[cfg(test)] -#[cfg(feature = "with-bench")] -mod bench { - use test::Bencher; - - /* - #[bench] - pub fn serialization(&b: &mut Bencher) -> Self { - let bc = BlockContent::new(); - - b.iter(|| { - - }) - } - */ -} From cb88a16ca2bb392dbcc09083318c77504683e3ca Mon Sep 17 00:00:00 2001 From: dkijania Date: Tue, 19 May 2020 12:14:53 +0200 Subject: [PATCH 3/3] renamed job. changed image --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6e1d31f58..5e1583927 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -104,9 +104,9 @@ jobs: RUST_BACKTRACE: 1 command: cargo test --verbose --frozen - test_mockchain_all_features: + test_all_features: docker: - - image: rustlang/rust:nightly + - image: rust:latest working_directory: /mnt/crate steps: - checkout