-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
109 lines (81 loc) · 2.69 KB
/
.gitlab-ci.yml
File metadata and controls
109 lines (81 loc) · 2.69 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
variables:
GIT_SUBMODULE_STRATEGY: recursive
PHOENIX_PATH_PRODUCTION_PLUGINS: /htdocs/wp-content/plugins
PHOENIX_PATH_TEST_PLUGINS: /var/www/phoenix/wp-content/plugins
PROJECT_NAME: tracking-consent
WDEX_PATH_PRODUCTION_PLUGINS: /htdocs/wp-content/plugins
WD50_PATH_PRODUCTION_PLUGINS: /htdocs/wp-content/plugins
WD50_PATH_PRODUCTION_THEMES: /htdocs/wp-content/themes
WD50_PATH_TEST_PLUGINS: /var/www/wd50/wp-content/plugins
WD50_PATH_TEST_THEMES: /var/www/wd50/wp-content/themes
before_script:
- git clone --branch=master --depth=1 --quiet git@git.aurora.ci:meta/deploy-script.git
- chmod +x deploy-script/*.sh
stages:
- code sniffer
- test
- production
webdesign.extern:
stage: production
script:
- cd deploy-script
- ./deploy.sh -u $DEPLOY_SERVER -d $DEPLOY_PATH -h $DEPLOY_SERVER
only:
- tags
variables:
DEPLOY_PATH: ${WDEX_PATH_PRODUCTION_PLUGINS}/${PROJECT_NAME}
DEPLOY_SERVER: webdesign.extern.regiohelden.de
wd50.extern:
stage: production
script:
- cd deploy-script
- ./deploy.sh -u $DEPLOY_SERVER -d $DEPLOY_PATH -h $DEPLOY_SERVER
only:
- tags
variables:
DEPLOY_PATH: ${WD50_PATH_PRODUCTION_PLUGINS}/${PROJECT_NAME}
DEPLOY_SERVER: wd50.extern.regiohelden.de
rh.de:
stage: production
script:
- cd deploy-script
- ./deploy.sh -u $DEPLOY_SERVER -d $DEPLOY_PATH -h $DEPLOY_SERVER
only:
- tags
variables:
DEPLOY_PATH: ${PHOENIX_PATH_PRODUCTION_PLUGINS}/${PROJECT_NAME}
DEPLOY_SERVER: regiohelden.de
upload_phoenix_northstar:
stage: test
script:
- cd deploy-script
- ./deploy.sh -u $SSH_USER_TEST -d $DEPLOY_PATH -h $DEPLOY_SERVER
only:
- master
variables:
DEPLOY_PATH: ${PHOENIX_PATH_TEST_PLUGINS}/${PROJECT_NAME}
DEPLOY_SERVER: northstar.li
# GitLab group variables:
# - SSH_USER_TEST
upload_wd50_northstar:
stage: test
script:
- cd deploy-script
- ./deploy.sh -u $SSH_USER_TEST -d $DEPLOY_PATH -h $DEPLOY_SERVER --zip
only:
- master
variables:
DEPLOY_PATH: ${WD50_PATH_TEST_PLUGINS}/${PROJECT_NAME}
DEPLOY_SERVER: northstar.li
# GitLab group variables:
# - SSH_USER_TEST
code_sniffer:
stage: code sniffer
script:
- cp /home/gitlab-runner/phpcs/ruleset.xml .
- sed -i "s/PROJECT_NAME_UNDERLINE/${PROJECT_NAME/-/_}/g" ruleset.xml
- sed -i "s/PROJECT_NAME/${PROJECT_NAME}/g" ruleset.xml
- phpcs --standard=ruleset.xml *
only:
- master
allow_failure: true