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

Commit 9baac30

Browse files
committed
Merge branch 'master' into changes_tries_update_configuration
2 parents d63d65e + 6611308 commit 9baac30

File tree

154 files changed

+1492
-1057
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+1492
-1057
lines changed

.gitlab-ci.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ build-linux-subkey:
289289
script:
290290
- cd ./subkey
291291
- BUILD_DUMMY_WASM_BINARY=1 time cargo build --release --verbose
292-
- cd ..
292+
- cd -
293293
- sccache -s
294294
- mkdir -p ./artifacts/subkey
295295
- mv ./target/release/subkey ./artifacts/subkey/.
@@ -338,20 +338,33 @@ check_warnings:
338338
fi
339339
allow_failure: true
340340

341+
# Check whether Polkadot 'master' branch builds using this Substrate commit.
341342
check_polkadot:
342343
stage: build
343344
<<: *docker-env
344345
allow_failure: true
345346
dependencies:
346347
- test-linux-stable
347348
script:
348-
- git clone --depth 1 https://github.com/paritytech/polkadot.git
349349
- COMMIT_HASH=$(git rev-parse HEAD)
350+
- SUBSTRATE_PATH=$(pwd)
351+
# Clone the current Polkadot master branch into ./polkadot.
352+
- git clone --depth 1 https://gitlab.parity.io/parity/polkadot.git
350353
- cd polkadot
351-
- git grep -l "polkadot-master" | grep toml | xargs sed -i "s/branch.*=.*\"polkadot-master\"/rev = \"$COMMIT_HASH\"/"
352-
- cargo update -p sr-io --precise $COMMIT_HASH
354+
# Within Polkadot 'master' alter each Cargo.toml that references the
355+
# Substrate 'polkadot-master' branch:
356+
# 1. Replace the 'branch = "polkadot-master"' statements with the rev of our
357+
# commit.
358+
# 2. Replace 'git = "https://.*"' with 'git = "file://.*"' (the local
359+
# checked out Substrate repository one folder above).
360+
# 3. Remove any trailing commas.
361+
- git grep -l "polkadot-master" | grep toml | xargs sed -i "s/branch.*=.*\"polkadot-master\"/rev = \"$COMMIT_HASH\"/; s~https://github.com/paritytech/substrate~file://$SUBSTRATE_PATH~; s/,\s*}/ }/"
362+
# Make sure 'Cargo.lock' matches 'Cargo.toml'. It's enough to update one
363+
# package, others are updated along the way.
364+
- cargo update -p sr-io
365+
# Check whether Polkadot 'master' branch builds with this Substrate commit.
353366
- time cargo check
354-
- cd ..
367+
- cd -
355368
- sccache -s
356369

357370
#### stage: publish

0 commit comments

Comments
 (0)