From 9fbbdfdfd46a65941f86786ba74dfb5c7c313ab7 Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Mon, 23 Mar 2020 21:57:36 +0100 Subject: [PATCH] Add `runtime-benchmarks` compile/test in CI pipeline (#5371) * Add `runtime-benchmarks` compile * Use cargo check and no wasm build --- substrate/.gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/substrate/.gitlab-ci.yml b/substrate/.gitlab-ci.yml index 13943ba22c..ccaac81f83 100644 --- a/substrate/.gitlab-ci.yml +++ b/substrate/.gitlab-ci.yml @@ -248,6 +248,22 @@ test-wasmtime: - WASM_BUILD_NO_COLOR=1 time cargo test --release --verbose --features wasmtime - sccache -s +test-runtime-benchmarks: + stage: test + <<: *docker-env + variables: + # Enable debug assertions since we are running optimized builds for testing + # but still want to have debug assertions. + RUSTFLAGS: -Cdebug-assertions=y + RUST_BACKTRACE: 1 + except: + variables: + - $DEPLOY_TAG + script: + - cd bin/node/cli + - BUILD_DUMMY_WASM_BINARY=1 time cargo check --verbose --features runtime-benchmarks + - sccache -s + test-linux-stable-int: <<: *test-linux except: