From 8dbfea68c828325d3538a5d12f2eb57c8158d240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Silva=20de=20Souza?= <77391175+joao-paulo-parity@users.noreply.github.com> Date: Thu, 14 Oct 2021 09:25:26 -0300 Subject: [PATCH] use pipeline-scripts for dependent projects script (#4017) --- polkadot/.gitlab-ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/polkadot/.gitlab-ci.yml b/polkadot/.gitlab-ci.yml index ae10e34d62..fdf51e1c10 100644 --- a/polkadot/.gitlab-ci.yml +++ b/polkadot/.gitlab-ci.yml @@ -31,6 +31,7 @@ variables: VAULT_SERVER_URL: "https://vault.parity-mgmt-vault.parity.io" VAULT_AUTH_PATH: "gitlab-parity-io-jwt" VAULT_AUTH_ROLE: "cicd_gitlab_parity_${CI_PROJECT_NAME}" + PIPELINE_SCRIPTS_TAG: "v0.1" default: cache: {} @@ -270,6 +271,28 @@ build-adder-collator: #### stage: build +.check-dependent-project: &check-dependent-project + stage: build + <<: *docker-env + <<: *vault-secrets + script: + - git clone + --depth=1 + "--branch=$PIPELINE_SCRIPTS_TAG" + https://github.com/paritytech/pipeline-scripts + - ./pipeline-scripts/check_dependent_project.sh + paritytech + polkadot + --polkadot + "$DEPENDENT_REPO" + "$GITHUB_PR_TOKEN" + - cd "$DEPENDENT_REPO" && git rev-parse --abbrev-ref HEAD + +check-dependent-cumulus: + <<: *check-dependent-project + variables: + DEPENDENT_REPO: cumulus + check-transaction-versions: # image must be ubuntu:20.04 based to match the linkers, this image has npm installed image: paritytech/contracts-ci-linux:production