Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit fa8ae59

Browse files
committed
Add .gitlab-ci.yml
1 parent 4ffc5f8 commit fa8ae59

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

.gitlab-ci.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
stages:
2+
- install
3+
- tests
4+
- quality
5+
6+
composer:
7+
stage: install
8+
image: liteacz/php:7.4-cli-build
9+
script:
10+
- composer --version
11+
- composer install -a --no-suggest --no-scripts --prefer-dist
12+
artifacts:
13+
expire_in: 25 mins
14+
paths:
15+
- vendor
16+
only:
17+
- tags
18+
- web
19+
- merge_requests
20+
21+
phpunit:
22+
stage: tests
23+
image: liteacz/php:7.4-cli-build
24+
script:
25+
- composer test
26+
only:
27+
- tags
28+
- web
29+
- merge_requests
30+
dependencies:
31+
- composer
32+
33+
phpstan:
34+
stage: quality
35+
image: liteacz/php:7.4-cli-build
36+
script:
37+
- composer run-script phpstan
38+
dependencies:
39+
- composer
40+
only:
41+
- tags
42+
- web
43+
- merge_requests
44+
45+
codesniffer:
46+
stage: quality
47+
image: liteacz/php:7.4-cli-build
48+
script:
49+
- composer run-script phpcs
50+
dependencies:
51+
- composer
52+
only:
53+
- tags
54+
- web
55+
- merge_requests
56+
57+
security-check:
58+
stage: quality
59+
image: liteacz/php:7.4-cli-build
60+
script:
61+
- composer run-script security
62+
dependencies:
63+
- composer
64+
only:
65+
- tags
66+
- web
67+
- merge_requests

0 commit comments

Comments
 (0)