Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

[ci] Disable auto-fmt and revert cancel-pipeline #1642

Merged
merged 3 commits into from
Sep 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 1 addition & 32 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,23 +112,6 @@ variables:
tags:
- kubernetes-parity-build

#### stage: .pre

# checks code format and fails if formatting is required
# the code will be formatted automatically and the pipeline will be restarted
cargo-fmt:
stage: .pre
<<: *pr-refs
<<: *kubernetes-env
before_script:
- echo PROJECT_NAME=$CI_PROJECT_NAME > fmt.env
- echo PR_BRANCH_NAME=$(curl -s https://api.github.com/repos/paritytech/${CI_PROJECT_NAME}/pulls/${CI_COMMIT_REF_NAME} | jq -r ".head.ref") >> fmt.env
script:
- cargo +nightly fmt --check
artifacts:
reports:
dotenv: fmt.env

#### stage: test

test-linux-stable:
Expand Down Expand Up @@ -686,19 +669,5 @@ cancel-pipeline:
PR_NUM: "${PR_NUM}"
trigger:
project: "parity/infrastructure/ci_cd/pipeline-stopper"
# remove branch, when pipeline-stopper for substrate and polakdot is updated to the same branch
branch: "as-improve"

# this job will automatically format code and rerun pipeline if cargo-fmt job fails
auto-fmt:
stage: .post
rules:
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
when: on_failure
needs:
- job: cargo-fmt
variables:
PROJECT_NAME: "${CI_PROJECT_NAME}"
PR_BRANCH_NAME: "${PR_BRANCH_NAME}"
trigger:
project: "parity/infrastructure/ci_cd/auto-fmt"