-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
69 lines (63 loc) · 1.34 KB
/
.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This file is a template, and might need editing before it works on your project.
# Select image from https://hub.docker.com/_/php/
image: epcallan/php7-testing-phpunit:7.2-phpunit6
cache:
paths:
- vendor/
stages:
- build
- test
build:
stage: build
cache:
key: "build-vendor"
untracked: true
paths:
- vendor/
policy: push
script:
- composer install --no-progress --optimize-autoloader
test:codeStyle:
stage: test
script:
- vendor/bin/php-cs-fixer fix --dry-run --diff -vvv
cache:
key: "build-vendor"
untracked: true
paths:
- vendor/
policy: pull
dependencies:
- build
test:testing:
stage: test
before_script:
- php -v
script:
- vendor/bin/codecept run --colors --steps
dependencies:
- build
cache:
key: "build-vendor"
untracked: true
paths:
- vendor/
policy: pull
test:coverage:
stage: test
artifacts:
paths:
- coverage/
cache:
key: "build-vendor"
untracked: true
paths:
- vendor/
policy: pull
before_script:
- php -v
script:
- docker-php-ext-enable xdebug >> /dev/null
- vendor/bin/codecept run --coverage-html --coverage-xml=../../coverage/coverage.xml --coverage --coverage-text=coverage/coverage.txt --xml=coverage/report.xml --steps --no-colors --no-ansi
dependencies:
- build