-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
36 lines (28 loc) · 773 Bytes
/
.gitlab-ci.yml
File metadata and controls
36 lines (28 loc) · 773 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
### GENERAL ###
image: chialab/php:7.2-apache
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- vendor/
stages:
- lint
- test
before_script:
- apt-get update -yqq
- apt-get install curl ssh rsync git -yqq
- composer install
### JOBS ###
job_lint_app_phpdefaultversion: &definition_lint_app_phpdefaultversion
stage: lint
script:
- composer require --dev friendsofphp/php-cs-fixer:^2.0 jakub-onderka/php-parallel-lint:^1.0
- vendor/bin/php-cs-fixer -vvv fix . --dry-run --diff --using-cache=no --rules=@PSR2
- vendor/bin/parallel-lint --exclude vendor .
job_lint_app_phpnextversion:
<<: *definition_lint_app_phpdefaultversion
image: chialab/php:7.3-apache
allow_failure: true
job_test_app:
stage: test
script:
- composer test