more pipeline tweaks

This commit is contained in:
Andrew Dolgov 2023-04-01 12:36:37 +03:00
parent 4fd0d13b64
commit 92185933f9
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ stages:
name: ${CI_DOCKER_IMAGE}
stage: build
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != "web"
changes:
- '**/*.php'
- '**/*.js'
@ -56,7 +56,7 @@ phpunit:
name: ${CI_DOCKER_IMAGE}
stage: lint
rules:
- if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE != "web"
changes:
- '**/*.php'
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
@ -71,7 +71,7 @@ eslint:
name: ${CI_DOCKER_IMAGE}
stage: lint
rules:
- if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE != "web"
changes:
- '**/*.js'
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
@ -89,7 +89,7 @@ phpstan:
- phpunit
stage: lint
rules:
- if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE != "web"
changes:
- '**/*.php'
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
@ -114,7 +114,7 @@ phpdoc:
name: ${CI_DOCKER_IMAGE}
stage: build
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != "web"
changes:
- '**/*.php'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH