-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
48 lines (41 loc) · 971 Bytes
/
.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
# Select what we should cache
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- vendor/
before_script:
# Sanity checks
- hostname
- whoami
- pwd
- git --version
- composer --version
- php --version
# Create staging directory
- mkdir -p build
# Inject PHPUnit configuration
- cp "$PHP_UNIT_XML" ./phpunit.xml
# Install composer dependencies
- composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
analyze:app:
tags:
- ubuntu18
- codeigniter4
script:
- deptrac analyze --cache-file=build/deptrac.cache
- phpcpd app/ tests/
- vendor/bin/phpstan analyze
- vendor/bin/psalm
- rector process --dry-run --no-progress-bar
lint:app:
tags:
- ubuntu18
- codeigniter4
script:
- vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --using-cache=no --diff
test:app:
tags:
- ubuntu18
- codeigniter4
script:
- vendor/bin/phpunit --verbose --coverage-text