Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add CI check for runtime-benchmarks #936

Merged
merged 1 commit into from
Mar 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,16 @@ check-web-wasm: &test
- time cargo build --locked --target=wasm32-unknown-unknown --manifest-path cli/Cargo.toml --no-default-features --features browser
- sccache -s

check-runtime-benchmarks: &test
stage: test
<<: *test-refs
<<: *docker-env
<<: *compiler_info
script:
# Check that the node will compile with `runtime-benchmarks` feature flag.
- time cargo check --features runtime-benchmarks
- sccache -s


build-linux-release: &build
stage: build
Expand Down Expand Up @@ -266,7 +276,7 @@ publish-s3-release:
- |
cat <<-EOM
|
| polkadot binary paths:
| polkadot binary paths:
|
| - https://${BUCKET}/${PREFIX}/${EXTRATAG}/polkadot
| - https://${BUCKET}/${PREFIX}/${VERSION}/polkadot
Expand Down Expand Up @@ -375,5 +385,3 @@ deploy-polkasync-kusama:
-F "ref=master" \
-F "variables[POLKADOT_BUILD_REF]=${CI_COMMIT_REF_NAME}" \
${GITLAB_API}/projects/${GITHUB_API_PROJECT}/trigger/pipeline | jq .


2 changes: 1 addition & 1 deletion runtime/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ std = [
"log",
]
runtime-benchmarks = [
"libsecp256k1",
"libsecp256k1/hmac",
"frame-benchmarking",
"frame-support/runtime-benchmarks"
]
7 changes: 6 additions & 1 deletion runtime/kusama/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,9 @@ std = [
"randomness-collective-flip/std",
"runtime-common/std",
]
runtime-benchmarks = ["frame-benchmarking", "runtime-common/runtime-benchmarks"]
runtime-benchmarks = [
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"runtime-common/runtime-benchmarks",
"elections-phragmen/runtime-benchmarks"
]
7 changes: 6 additions & 1 deletion runtime/polkadot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,9 @@ std = [
"sudo/std",
"vesting/std",
]
runtime-benchmarks = ["frame-benchmarking", "runtime-common/runtime-benchmarks"]
runtime-benchmarks = [
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"runtime-common/runtime-benchmarks",
"elections-phragmen/runtime-benchmarks"
]