Bkchr check all benches (#3180)

* Make sure CI checks all benchmarks

* Fix babe
This commit is contained in:
Bastian Köcher
2019-07-23 13:57:32 +02:00
committed by GitHub
parent a0bb34a584
commit 6e4066b62d
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ cargo-check-benches:
stage: test stage: test
<<: *docker-env <<: *docker-env
script: script:
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --benches - BUILD_DUMMY_WASM_BINARY=1 time cargo check --benches --all
- sccache -s - sccache -s
+1 -1
View File
@@ -308,7 +308,7 @@ cargo run --release \-- \
Additional Substrate CLI usage options are available and may be shown by running `cargo run \-- --help`. Additional Substrate CLI usage options are available and may be shown by running `cargo run \-- --help`.
== WASM binaries === WASM binaries
The WASM binaries are built during the normal `cargo build` process. To control the WASM binary building, The WASM binaries are built during the normal `cargo build` process. To control the WASM binary building,
we support multiple environment variables: we support multiple environment variables:
+1 -1
View File
@@ -233,7 +233,7 @@ fn run_one_test() {
let wait_for = futures::future::join_all(import_notifications); let wait_for = futures::future::join_all(import_notifications);
let drive_to_completion = futures::future::poll_fn(|| { net.lock().poll(); Ok(Async::NotReady) }); let drive_to_completion = futures::future::poll_fn(|| { net.lock().poll(); Ok(Async::NotReady) });
runtime.block_on(wait_for.select(drive_to_completion).map_err(|_| ())).unwrap(); let _ = runtime.block_on(wait_for.select(drive_to_completion).map_err(|_| ())).unwrap();
} }
#[test] #[test]
+4
View File
@@ -56,6 +56,8 @@ impl_outer_event! {
srml_support::parameter_types! { srml_support::parameter_types! {
pub const BlockHashCount: u64 = 250; pub const BlockHashCount: u64 = 250;
pub const MaximumBlockWeight: u32 = 4 * 1024 * 1024;
pub const MaximumBlockLength: u32 = 4 * 1024 * 1024;
} }
#[derive(Clone, Eq, PartialEq)] #[derive(Clone, Eq, PartialEq)]
pub struct Runtime; pub struct Runtime;
@@ -71,6 +73,8 @@ impl system::Trait for Runtime {
type WeightMultiplierUpdate = (); type WeightMultiplierUpdate = ();
type Event = Event; type Event = Event;
type BlockHashCount = BlockHashCount; type BlockHashCount = BlockHashCount;
type MaximumBlockWeight = MaximumBlockWeight;
type MaximumBlockLength = MaximumBlockLength;
} }
impl module::Trait for Runtime { impl module::Trait for Runtime {