From dcee91412cf30df6d5bf30e06b4da53eab17e280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Thu, 7 Nov 2019 12:05:22 +0100 Subject: [PATCH] Check polkadot compilation. (#3980) * Check polkadot compilation. * Fix git grep. * Make sure to update properly. Use commit hash instead. --- substrate/.gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/substrate/.gitlab-ci.yml b/substrate/.gitlab-ci.yml index f0c8be2b4b..baf875fd0f 100644 --- a/substrate/.gitlab-ci.yml +++ b/substrate/.gitlab-ci.yml @@ -338,6 +338,22 @@ check_warnings: fi allow_failure: true +check_polkadot: + stage: build + <<: *docker-env + allow_failure: true + dependencies: + - test-linux-stable + script: + - git clone --depth 1 https://github.com/paritytech/polkadot.git + - COMMIT_HASH=$(git rev-parse HEAD) + - 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 + - time cargo check + - cd .. + - sccache -s + #### stage: publish .publish-docker-release: &publish-docker-release