-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy path.gitlab-ci.yml
executable file
·74 lines (64 loc) · 1.4 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
stages:
- prepare
- cs-fix
- lint
- deploy
workflow:
rules:
- if: $CI_PIPELINE_SOURCE != "merge_request_event"
include:
# Prepare
- project: 'intern/runner-templates'
ref: "15.3"
file: '/symfony/install-dependencies.yml'
# CS fix
- project: 'intern/runner-templates'
ref: "15.3"
file: '/php/code-style-fixer.yml'
# Lint
- project: 'intern/runner-templates'
ref: "15.3"
file: '/php/phan.yml'
- project: 'intern/runner-templates'
ref: "15.3"
file: '/php/composer-require-checker.yml'
- project: 'intern/runner-templates'
ref: "15.3"
file: '/php/composer-unused.yml'
- project: 'intern/runner-templates'
file: '/deploy/deploy.yml'
ref: "15.3"
install-dependencies:
before_script:
- /bin/true
except:
- master
- tags
composer-require-checker:
except:
- master
- tags
composer-unused:
except:
- master
- tags
php-analysis:
except:
- master
- tags
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'