-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy path.gitlab-ci.yml
65 lines (58 loc) · 1.46 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
stages:
- test
- build
unit_7_1:
stage: test
image: registry.gitlab.com/socialconnect-php/auth:7.1
script:
- composer install -o
- ./vendor/bin/phpunit -v --debug --no-coverage;
tags:
- docker
unit_7_2:
stage: test
image: registry.gitlab.com/socialconnect-php/auth:7.2
script:
- composer install -o
- ./vendor/bin/phpunit -v --debug --no-coverage;
tags:
- docker
unit_7_3:
stage: test
image: registry.gitlab.com/socialconnect-php/auth:7.3
script:
- composer install -o
- ./vendor/bin/phpunit -v --debug --no-coverage;
tags:
- docker
unit_7_4:
stage: test
image: registry.gitlab.com/socialconnect-php/auth:7.4
script:
- composer install -o
- ./vendor/bin/phpunit -v --debug --no-coverage;
tags:
- docker
phpstan:
stage: test
image: registry.gitlab.com/socialconnect-php/auth:7.3
script:
- composer install -o
- ./vendor/bin/phpstan.phar analyse src/ tests/ --no-progress --level 2
tags:
- docker
docs:
stage: build
variables:
GIT_STRATEGY: clone
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR/docs --dockerfile $CI_PROJECT_DIR/docs/Dockerfile --destination $CI_REGISTRY_IMAGE:docs
only:
- master
- 3.x
tags:
- docker