-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
59 lines (54 loc) · 1.32 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
stages:
- setup
- test
- static-analysis
build-runner-image:
stage: setup
image: docker:latest
services:
- docker:dind
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
variables:
IMAGE_NAME: $CI_REGISTRY_IMAGE/pipeline-runner:main
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build --no-cache -t "$IMAGE_NAME" .gitlab/runner-image
- docker push "$IMAGE_NAME"
phpunit:
image: docker:latest
stage: test
services:
- docker:dind
script: bin/ci/test.sh
parallel:
matrix:
- SHOPWARE_VERSION:
- "v6.6.0"
- "v6.6.1"
- "v6.6.2"
- "v6.6.3"
- "v6.6.4"
- "v6.6.5"
- "v6.6.6"
- "v6.6.7"
- "v6.6.8"
# - "v6.6.9" # -- testing docker image is not released yet.
rector:
stage: static-analysis
image: $CI_REGISTRY_IMAGE/pipeline-runner:main
script:
- composer install --no-scripts
- php vendor/bin/rector --dry-run
phpstan:
stage: static-analysis
image: $CI_REGISTRY_IMAGE/pipeline-runner:main
script:
- composer install --no-scripts
- php vendor/bin/phpstan
easy-coding-standard:
stage: static-analysis
image: $CI_REGISTRY_IMAGE/pipeline-runner:main
script:
- composer install --no-scripts
- php vendor/bin/ecs