-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
51 lines (42 loc) · 849 Bytes
/
.gitlab-ci.yml
File metadata and controls
51 lines (42 loc) · 849 Bytes
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
variables:
COMPOSER_ALLOW_SUPERUSER: 1
stages:
- build
- code-quality
include:
- template: Composer.gitlab-ci.yml
package_install:
stage: build
image: mallardduck/gitlab-ci-pipeline-php:8.1-alpine
when: always
script:
- composer install --ignore-platform-reqs
artifacts:
paths:
- .Build/
default:
image: mallardduck/gitlab-ci-pipeline-php:8.1-alpine
tags:
- docker
create-extension:
stage: build
script:
- composer install --prefer-dist --no-ansi --no-interaction --no-progress
php-lint:
stage: code-quality
needs:
- package_install
script:
- composer run ci:php:lint
php-cs-fixer:
stage: code-quality
needs:
- package_install
script:
- composer run ci:php:cs
php-stan:
stage: code-quality
needs:
- package_install
script:
- composer run ci:php:stan