Skip to content
Snippets Groups Projects
Commit e2be2559 authored by Éloïs's avatar Éloïs
Browse files

ci: adapt rules: auto on MR, otherwise manual

parent 72f711f8
No related branches found
No related tags found
1 merge request!1Create CI
Pipeline #10977 passed
...@@ -14,6 +14,11 @@ stages: ...@@ -14,6 +14,11 @@ stages:
format: format:
extends: .env extends: .env
rules:
- if: $CI_COMMIT_REF_NAME =~ /^wip*$/
when: manual
- if: $CI_COMMIT_TAG || $CI_MERGE_REQUEST_ID
- when: manual
stage: format stage: format
script: script:
- cargo fmt -- --version - cargo fmt -- --version
...@@ -22,6 +27,11 @@ format: ...@@ -22,6 +27,11 @@ format:
build_and_test: build_and_test:
extends: .env extends: .env
rules:
- if: $CI_COMMIT_REF_NAME =~ /^wip*$/
when: manual
- if: $CI_COMMIT_TAG || $CI_MERGE_REQUEST_ID
- when: manual
stage: build_and_test stage: build_and_test
tags: tags:
- redshift - redshift
...@@ -34,6 +44,11 @@ build_and_test: ...@@ -34,6 +44,11 @@ build_and_test:
lint: lint:
extends: .env extends: .env
rules:
- if: $CI_COMMIT_REF_NAME =~ /^wip*$/
when: manual
- if: $CI_COMMIT_TAG || $CI_MERGE_REQUEST_ID
- when: manual
stage: quality stage: quality
script: script:
- cargo clippy -- -V - cargo clippy -- -V
...@@ -41,6 +56,11 @@ lint: ...@@ -41,6 +56,11 @@ lint:
audit_dependencies: audit_dependencies:
extends: .env extends: .env
rules:
- if: $CI_COMMIT_REF_NAME =~ /^wip*$/
when: manual
- if: $CI_COMMIT_TAG || $CI_MERGE_REQUEST_ID
- when: manual
stage: quality stage: quality
script: script:
- cargo deny -V - cargo deny -V
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment