-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
executable file
·52 lines (45 loc) · 1.15 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
stages:
- prepare
- cs-fix
- lint
- deploy
include:
# Prepare
- project: 'intern/runner-templates'
ref: "13.0"
file: '/symfony/install-dependencies.yml'
# CS fix
- project: 'intern/runner-templates'
ref: "13.0"
file: '/php/code-style-fixer.yml'
# Lint
- project: 'intern/runner-templates'
ref: "13.0"
file: '/php/phan.yml'
- project: 'intern/runner-templates'
ref: "13.0"
file: '/php/composer-require-checker.yml'
- project: 'intern/runner-templates'
ref: "13.0"
file: '/php/composer-unused.yml'
- project: 'intern/runner-templates'
file: '/deploy/deploy.yml'
ref: "13.0"
install-dependencies:
before_script:
- /bin/true
code-style-fixer:
variables:
PHP_CS_FIXER_IGNORE_ENV: 'yes' # Required to our current php-cs-fixer with php8.2, needs to be removed
deploy-staging:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
- if: $CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH
when: on_success
- when: never
deploy-production:
rules:
- if: $CI_COMMIT_TAG
when: on_success
- when: never