-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
executable file
·79 lines (70 loc) · 1.58 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
stages:
- prepare
- cs-fix
- lint
- deploy
workflow:
rules:
- if: $CI_PIPELINE_SOURCE != "merge_request_event"
variables:
COMPOSER_MEMORY_LIMIT: -1
YAMLLINT_DIRECTORIES: config/packages
include:
- project: 'intern/runner-templates'
file: '/symfony/install-dependencies.yml'
ref: "15.2"
- project: 'intern/runner-templates'
ref: "15.2"
file: '/php/code-style-fixer.yml'
- project: 'intern/runner-templates'
ref: "15.2"
file: '/php/phpstan.yml'
- project: 'intern/runner-templates'
file: '/php/composer-require-checker.yml'
ref: "15.2"
- project: 'intern/runner-templates'
file: '/php/composer-unused.yml'
ref: "15.2"
- project: 'intern/runner-templates'
file: '/yaml/yamllint.yml'
ref: "15.2"
- project: 'intern/runner-templates'
file: '/deploy/deploy.yml'
ref: "15.2"
install-dependencies:
before_script:
- /bin/true
except:
- master
- tags
yaml-analysis:
except:
- schedules
- tags
- master
composer-require-checker:
except:
- schedules
- tags
- master
composer-unused:
except:
- schedules
- tags
- master
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
release:
name: Release $CI_COMMIT_TAG
tag_name: $CI_COMMIT_TAG
description: 'Tagged release: $CI_COMMIT_TAG'