diff --git a/polkadot/.gitlab-ci.yml b/polkadot/.gitlab-ci.yml index 3547cf6a3d..6bad88d22a 100644 --- a/polkadot/.gitlab-ci.yml +++ b/polkadot/.gitlab-ci.yml @@ -89,10 +89,10 @@ test-linux-stable: &test TARGET: native script: - | - test "${CI_COMMIT_TAG}" = "kusama-nightly-staging" && ( - echo "kusama-nightly-staging: change Cargo.toml to build against substrate:kusama-nightly-staging" - find . -name Cargo.toml -exec sed -i -r -e ':github.com/paritytech/substrate: { s:branch = "polkadot-master":tag = "kusama-nightly-staging":; s:github.com/paritytech/substrate:gitlab.parity.io/parity/substrate.git:}' '{}' \; - time cargo test --all --release --verbose) || \ + test "${CI_COMMIT_REF_NAME}" = "kusama-nightly-staging" && ( + echo "kusama-nightly-staging: change Cargo.toml to build against substrate:kusama-nightly-staging" + find . -name Cargo.toml -exec sed -i -r -e ':github.com/paritytech/substrate": { s:branch = "polkadot-(master|testing)":branch = "kusama-nightly-staging":; s:github.com/paritytech/substrate:gitlab.parity.io/parity/substrate.git:}' '{}' \; + time cargo test --all --release --verbose) || \ time cargo test --all --release --verbose --locked - sccache -s @@ -107,9 +107,9 @@ build-linux-release: &build <<: *compiler_info script: - | - test "${CI_COMMIT_TAG}" = "kusama-nightly-staging" && ( - echo "kusama-nightly-staging: change Cargo.toml to build against substrate:kusama-nightly-staging"; - find . -name Cargo.toml -exec sed -i -r -e ':github.com/paritytech/substrate: { s:branch = "polkadot-master":tag = "kusama-nightly-staging":; s:github.com/paritytech/substrate:gitlab.parity.io/parity/substrate.git:}' '{}' \;) + test "${CI_COMMIT_REF_NAME}" = "kusama-nightly-staging" && ( + echo "kusama-nightly-staging: change Cargo.toml to build against substrate:kusama-nightly-staging"; + find . -name Cargo.toml -exec sed -i -r -e ':github.com/paritytech/substrate": { s:branch = "polkadot-(master|testing)":branch = "kusama-nightly-staging":; s:github.com/paritytech/substrate:gitlab.parity.io/parity/substrate.git:}' '{}' \; - time cargo build --release --verbose - mkdir -p ./artifacts - mv ./target/release/polkadot ./artifacts/. @@ -278,4 +278,27 @@ deploy-ue1-tag: +deploy-polkasync-kusama: + stage: deploy + cache: {} + retry: 1 + image: parity/tools:latest + only: + - kusama-nightly-staging + tags: + - kubernetes-parity-build + variables: + GITLAB_API: "https://gitlab.parity.io/api/v4" + GITHUB_API_PROJECT: "parity%2Finfrastructure%2Fparity-testnet" + allow_failure: true + script: + - | + echo "kusama-nightly-staging: triggering roll-out on parity-testnet" + curl -sS -X POST \ + -F "token=${CI_JOB_TOKEN}" \ + -F "ref=master" \ + -F "variables[POLKADOT_BUILD_REF]=${CI_COMMIT_REF_NAME}" \ + ${GITLAB_API}/projects/${GITHUB_API_PROJECT}/trigger/pipeline | jq . + +