diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index baf875fd0fb79..d08397acc2a1c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -289,7 +289,7 @@ build-linux-subkey: script: - cd ./subkey - BUILD_DUMMY_WASM_BINARY=1 time cargo build --release --verbose - - cd .. + - cd - - sccache -s - mkdir -p ./artifacts/subkey - mv ./target/release/subkey ./artifacts/subkey/. @@ -345,13 +345,14 @@ check_polkadot: dependencies: - test-linux-stable script: - - git clone --depth 1 https://github.com/paritytech/polkadot.git - COMMIT_HASH=$(git rev-parse HEAD) + - SUBSTRATE_PATH=$(pwd) + - git clone --depth 1 https://gitlab.parity.io/parity/polkadot.git - cd polkadot - - git grep -l "polkadot-master" | grep toml | xargs sed -i "s/branch.*=.*\"polkadot-master\"/rev = \"$COMMIT_HASH\"/" - - cargo update -p sr-io --precise $COMMIT_HASH + - 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~" + - cargo update -p sr-io - time cargo check - - cd .. + - cd - - sccache -s #### stage: publish