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

Companion: move check-polkadot-companion-build to polkadot #1426

Closed
wants to merge 22 commits into from
Closed
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
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ indent_style=space
indent_size=2
tab_width=8
end_of_line=lf

[*.sh]
indent_style=space
indent_size=2
tab_width=2
end_of_line=lf
37 changes: 13 additions & 24 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,10 @@ test-deterministic-wasm:
<<: *docker-env
except:
script:
# build runtime
- WASM_BUILD_NO_COLOR=1 cargo build --verbose --release -p kusama-runtime -p polkadot-runtime -p westend-runtime
# make checksum
- sha256sum target/release/wbuild/target/wasm32-unknown-unknown/release/*.wasm > checksum.sha256
# clean up – FIXME: can we reuse some of the artifacts?
- cargo clean
# build again
- WASM_BUILD_NO_COLOR=1 cargo build --verbose --release -p kusama-runtime -p polkadot-runtime -p westend-runtime
# confirm checksum
- sha256sum -c checksum.sha256

- ./scripts/gitlab/test_deterministic_wasm.sh
- sccache -s
after_script:
- cd substrate && git rev-parse --abbrev-ref HEAD

test-linux-stable: &test
stage: test
Expand All @@ -134,36 +127,32 @@ test-linux-stable: &test
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
TARGET: native
script:
- time cargo test --all --release --verbose --locked --features runtime-benchmarks
- ./scripts/gitlab/test_linux_stable.sh
- sccache -s
after_script:
- cd substrate && git rev-parse --abbrev-ref HEAD

check-web-wasm: &test
stage: test
<<: *test-refs
<<: *docker-env
<<: *compiler_info
script:
# WASM support is in progress. As more and more crates support WASM, we
# should add entries here. See https://github.com/paritytech/polkadot/issues/625
- time cargo build --locked --target=wasm32-unknown-unknown --manifest-path runtime/polkadot/Cargo.toml
- time cargo build --locked --target=wasm32-unknown-unknown --manifest-path runtime/kusama/Cargo.toml
- time cargo build --locked --target=wasm32-unknown-unknown --manifest-path erasure-coding/Cargo.toml
- time cargo build --locked --target=wasm32-unknown-unknown --manifest-path parachain/Cargo.toml
- time cargo build --locked --target=wasm32-unknown-unknown --manifest-path primitives/Cargo.toml
- time cargo build --locked --target=wasm32-unknown-unknown --manifest-path rpc/Cargo.toml
- time cargo build --locked --target=wasm32-unknown-unknown --manifest-path statement-table/Cargo.toml
- time cargo build --locked --target=wasm32-unknown-unknown --manifest-path cli/Cargo.toml --no-default-features --features browser
- ./scripts/gitlab/check_web_wasm.sh
- sccache -s
after_script:
- cd substrate && git rev-parse --abbrev-ref HEAD

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
- ./scripts/gitlab/check_runtime_benchmarks.sh
- sccache -s
after_script:
- cd substrate && git rev-parse --abbrev-ref HEAD

build-wasm-release:
stage: build
Expand Down
Loading