Add CI check for runtme-benchmarks (#936)

This commit is contained in:
Shawn Tabrizi
2020-03-25 11:27:29 +01:00
committed by GitHub
parent 92191ae91a
commit d52c3a45a7
4 changed files with 24 additions and 6 deletions
+11 -3
View File
@@ -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 - time cargo build --locked --target=wasm32-unknown-unknown --manifest-path cli/Cargo.toml --no-default-features --features browser
- sccache -s - 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 build-linux-release: &build
stage: build stage: build
@@ -266,7 +276,7 @@ publish-s3-release:
- | - |
cat <<-EOM cat <<-EOM
| |
| polkadot binary paths: | polkadot binary paths:
| |
| - https://${BUCKET}/${PREFIX}/${EXTRATAG}/polkadot | - https://${BUCKET}/${PREFIX}/${EXTRATAG}/polkadot
| - https://${BUCKET}/${PREFIX}/${VERSION}/polkadot | - https://${BUCKET}/${PREFIX}/${VERSION}/polkadot
@@ -375,5 +385,3 @@ deploy-polkasync-kusama:
-F "ref=master" \ -F "ref=master" \
-F "variables[POLKADOT_BUILD_REF]=${CI_COMMIT_REF_NAME}" \ -F "variables[POLKADOT_BUILD_REF]=${CI_COMMIT_REF_NAME}" \
${GITLAB_API}/projects/${GITHUB_API_PROJECT}/trigger/pipeline | jq . ${GITLAB_API}/projects/${GITHUB_API_PROJECT}/trigger/pipeline | jq .
+1 -1
View File
@@ -76,7 +76,7 @@ std = [
"log", "log",
] ]
runtime-benchmarks = [ runtime-benchmarks = [
"libsecp256k1", "libsecp256k1/hmac",
"frame-benchmarking", "frame-benchmarking",
"frame-support/runtime-benchmarks" "frame-support/runtime-benchmarks"
] ]
+6 -1
View File
@@ -136,4 +136,9 @@ std = [
"randomness-collective-flip/std", "randomness-collective-flip/std",
"runtime-common/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"
]
+6 -1
View File
@@ -130,4 +130,9 @@ std = [
"sudo/std", "sudo/std",
"vesting/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"
]