-
Notifications
You must be signed in to change notification settings - Fork 17
/
.gitlab-ci.yml
42 lines (39 loc) · 1.17 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
variables:
DOCKER_DRIVER: overlay2
DOCKER_HOST: "tcp://docker:2375"
DOCKER_TLS_CERTDIR: "/certs"
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: app
MYSQL_PASSWORD: app
MYSQL_DATABASE: shopware
WEB_DOCUMENT_ROOT: $CI_PROJECT_DIR/
GIT_STRATEGY: clone
SHOPWARE_ENV: swaggoogletest
CHECKOUT_SHOPWARE_BRANCH: "5.7"
PLUGIN_NAME: SwagGoogle
default:
tags:
- t3.nano
stages:
- Code Analysis
PHP analyze:
stage: Code Analysis
tags:
- t3.medium
image: gitlab.shopware.com:5005/shopware/5/product/image/continuous:7.4
services:
- name: mysql:5.7
alias: mysql
before_script:
- zip -rq plugin.zip .
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.shopware.com/shopware/5/product/shopware.git shopware --depth=1 -b ${CHECKOUT_SHOPWARE_BRANCH}
- unzip -q plugin.zip -d shopware/custom/plugins/${PLUGIN_NAME}
- cd shopware
- cp .env.dist .env
- make init
- php bin/console sw:warm:http:cache
- /entrypoint supervisord &>/dev/null &
script:
- cd custom/plugins/${PLUGIN_NAME}
- make fix-cs-dry
- make phpstan