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

ci: simplify

parent 5dbd9965
No related branches found
No related tags found
1 merge request!3ci: create
stages: stages:
- style
- tests
- quality - quality
- build - tests
#- build
workflow: workflow:
rules: rules:
...@@ -19,16 +18,19 @@ workflow: ...@@ -19,16 +18,19 @@ workflow:
tags: tags:
- elois-tauon - elois-tauon
rustfmt: fmt_and_clippy:
extends: .env extends: .env
stage: style
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
when: never when: never
- if: $CI_MERGE_REQUEST_ID - if: $CI_MERGE_REQUEST_ID
- when: on_success
stage: quality
script: script:
- cargo fmt -- --version - cargo fmt -- --version
- cargo fmt -- --check - cargo fmt -- --check
- cargo clippy -- -V
- cargo clippy --all --tests -- -D warnings
tests: tests:
extends: .env extends: .env
...@@ -42,26 +44,3 @@ tests: ...@@ -42,26 +44,3 @@ tests:
stage: tests stage: tests
script: script:
- cargo test - 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
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