ci: update config

This commit is contained in:
naskya 2024-05-24 03:34:28 +09:00
parent febe518d44
commit a82d45935b
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -58,6 +58,8 @@ default:
test:build: test:build:
stage: test stage: test
rules: rules:
- if: $TEST == 'true'
when: always
- if: $TEST == 'false' - if: $TEST == 'false'
when: never when: never
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop' - if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop'
@ -84,6 +86,8 @@ test:build:
test:build:backend_ts_only: test:build:backend_ts_only:
stage: test stage: test
rules: rules:
- if: $TEST == 'true'
when: always
- if: $TEST == 'false' - if: $TEST == 'false'
when: never when: never
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop' - if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop'
@ -126,6 +130,8 @@ test:build:backend_ts_only:
test:build:client_only: test:build:client_only:
stage: test stage: test
rules: rules:
- if: $TEST == 'true'
when: always
- if: $TEST == 'false' - if: $TEST == 'false'
when: never when: never
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop' - if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop'
@ -164,6 +170,8 @@ build:container:
image: docker.io/debian:trixie-slim image: docker.io/debian:trixie-slim
services: [] services: []
rules: rules:
- if: $BUILD == 'true'
when: always
- if: $BUILD == 'false' - if: $BUILD == 'false'
when: never when: never
- if: $CI_COMMIT_BRANCH == 'develop' - if: $CI_COMMIT_BRANCH == 'develop'
@ -214,6 +222,8 @@ build:container:
cargo:test: cargo:test:
stage: test stage: test
rules: rules:
- if: $TEST == 'true'
when: always
- if: $TEST == 'false' - if: $TEST == 'false'
when: never when: never
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop' - if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop'
@ -233,6 +243,8 @@ cargo:test:
cargo:clippy: cargo:clippy:
stage: test stage: test
rules: rules:
- if: $TEST == 'true'
when: always
- if: $TEST == 'false' - if: $TEST == 'false'
when: never when: never
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop' - if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop'
@ -256,6 +268,8 @@ cargo:doc:
- cargo:test - cargo:test
- test:build - test:build
rules: rules:
- if: $DOC == 'true'
when: always
- if: $DOC == 'false' - if: $DOC == 'false'
when: never when: never
- if: $CI_COMMIT_BRANCH == 'develop' - if: $CI_COMMIT_BRANCH == 'develop'
@ -283,6 +297,8 @@ pages:
needs: needs:
- cargo:doc - cargo:doc
rules: rules:
- if: $DOC == 'true'
when: always
- if: $DOC == 'false' - if: $DOC == 'false'
when: never when: never
- if: $CI_COMMIT_BRANCH == 'develop' - if: $CI_COMMIT_BRANCH == 'develop'