-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
50 lines (45 loc) · 1.05 KB
/
.gitlab-ci.yml
File metadata and controls
50 lines (45 loc) · 1.05 KB
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
stages:
- preparation
- building
- testing
- analysis
image: lorisleiva/laravel-docker:8.5
composer:
stage: preparation
before_script:
- composer config --auth http-basic.vcs.cyberfusion.nl "gitlab-ci-token" "$CI_JOB_TOKEN" --no-ansi --no-interaction
script:
- composer --version
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- vendor/
artifacts:
expire_in: 1 month
paths:
- vendor/
phpunit:
stage: testing
coverage: '/^\s*Lines:\s*(\d+\.\d+)\%/'
variables:
XDEBUG_MODE: coverage
dependencies:
- composer
script:
- php -v
- php -d memory_limit=4G ./vendor/bin/phpunit --coverage-text --colors=never
phpstan:
stage: analysis
dependencies:
- composer
script:
- ./vendor/bin/phpstan --version
- php -d memory_limit=4G ./vendor/bin/phpstan analyse -v --no-ansi --no-interaction
code-style:
stage: analysis
allow_failure: true
dependencies:
- composer
script:
- ./vendor/bin/ecs