Skip to content

Commit

Permalink
CI: stop publishing to crates.io until unleash is fixed (paritytech#9474
Browse files Browse the repository at this point in the history
)

* CI: stop publishing to crates.io until unleash is fixed; allow restarting k8s runners

* CI: fix CI if ci-release tag is pushed
  • Loading branch information
TriplEight authored and Eric Miller committed Aug 2, 2021
1 parent 6468ec8 commit 56fd18a
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,15 @@ default:
- artifacts/

.kubernetes-env: &kubernetes-env
retry:
max: 2
when:
- runner_system_failure
- unknown_failure
- api_failure
interruptible: true
tags:
- kubernetes-parity-build
interruptible: true

.rust-info-script: &rust-info-script
- rustup show
Expand Down Expand Up @@ -97,6 +103,7 @@ default:
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
- if: $CI_COMMIT_REF_NAME =~ /^ci-release-.*$/

.test-refs-no-trigger-prs-only: &test-refs-no-trigger-prs-only
rules:
Expand Down Expand Up @@ -343,6 +350,7 @@ unleash-check:
- mkdir -p target/unleash
- export CARGO_TARGET_DIR=target/unleash
- cargo unleash check ${CARGO_UNLEASH_PKG_DEF}
# FIXME: this job must not fail, or unleash-to-crates-io will publish broken stuff
allow_failure: true

test-frame-examples-compile-to-wasm:
Expand Down Expand Up @@ -670,12 +678,14 @@ publish-draft-release:
- ./.maintain/gitlab/publish_draft_release.sh
allow_failure: true

publish-to-crates-io:
unleash-to-crates-io:
stage: publish
<<: *docker-env
rules:
- if: $CI_COMMIT_REF_NAME =~ /^ci-release-.*$/
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
# FIXME: wait until https://github.com/paritytech/cargo-unleash/issues/50 is fixed, also
# remove allow_failure: true on the check job
# - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
script:
- cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS}
- cargo unleash em-dragons --no-check --owner github:paritytech:core-devs ${CARGO_UNLEASH_PKG_DEF}
Expand Down

0 comments on commit 56fd18a

Please sign in to comment.