forked from thephpleague/plates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
59 lines (54 loc) · 1.27 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
.install-dependencies:
variables:
PHP_MEMORY_LIMIT: "2048M"
image:
name: registry.ulbricht.casa/jinya-cms/jinya-cms-php-base-test-image:latest
pull_policy: always
before_script:
- phive --no-progress install --trust-gpg-keys D615FEE32FD1702834DACC9C8AC0BAA79732DD42,D8406D0D82947747293778314AA394086372C20A,CA7C2C7A30C8E8E1274A847651C67305FFC2E5C0
- composer install
stages:
- lint
- test
- deploy
pint:
extends:
- .install-dependencies
stage: lint
script:
- ./vendor/bin/pint --test
phpstan:
extends:
- .install-dependencies
stage: lint
script:
- ./tools/phpstan --no-progress analyze ./src ./tests
phpunit:
extends:
- .install-dependencies
stage: test
script:
- ./tools/phpunit --log-junit report.xml --configuration ./phpunit.xml --coverage-text --coverage-cobertura=build/coverage.cobertura.xml
artifacts:
when: always
paths:
- report.xml
reports:
junit:
- report.xml
coverage_report:
coverage_format: cobertura
path: build/coverage.cobertura.xml
pages:
image: library/node:latest
stage: deploy
script:
- cd docs
- npm install
- npm run build
- mv ./build ../public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_TAG