Mise à jour de GitLab prévue ce samedi 23 octobre 2021 à partir de 9h00 CET

Commit 5dbd9965 authored by Éloïs's avatar Éloïs
Browse files

ci: create

parent 04fab32a
Pipeline #13400 canceled with stages
in 3 minutes and 16 seconds
stages:
- style
- tests
- quality
- build
workflow:
rules:
- changes:
- node/**/*
- pallets/**/*
- runtime/**/*
- .gitlab-ci.yml
- Cargo.toml
- Cargo.lock
.env:
image: paritytech/ci-linux:production
tags:
- elois-tauon
rustfmt:
extends: .env
stage: style
rules:
- if: $CI_COMMIT_TAG
when: never
- if: $CI_MERGE_REQUEST_ID
script:
- cargo fmt -- --version
- cargo fmt -- --check
tests:
extends: .env
rules:
- if: $CI_COMMIT_REF_NAME =~ /^wip*$/
when: manual
- if: $CI_COMMIT_TAG
when: never
- if: '$CI_MERGE_REQUEST_ID ||$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH =~ /^release/'
- when: manual
stage: tests
script:
- cargo test
clippy:
extends: .env
rules:
- if: $CI_COMMIT_TAG
when: never
- if: $CI_MERGE_REQUEST_ID
- when: on_success
stage: quality
script:
- cargo clippy -- -V
- cargo clippy --all --tests -- -D warnings
build:
extends: .env
rules:
- if: $CI_COMMIT_REF_NAME =~ /^wip*$/
when: manual
- if: '$CI_COMMIT_TAG || $CI_MERGE_REQUEST_ID ||$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH =~ /^release/'
- when: manual
stage: build
script:
- cargo build --release
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment