-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
55 lines (46 loc) · 1.09 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
stages:
- check
before_script:
- apt-get update && apt-get install -y zlib1g-dev && docker-php-ext-install zip
- curl https://getcomposer.org/download/1.8.0/composer.phar > /usr/local/bin/composer
- chmod +x /usr/local/bin/composer
- composer install
.check-code-template:
image: php:$PHP_VERSION
variables:
COMMIT_RANGE: HEAD~..HEAD
script:
- scripts/check-code.sh
stage: check
.phpunit-template:
image: php:$PHP_VERSION
coverage: /^\s*Lines:\s*\d+.\d+\%/
script:
- pecl install xdebug
- docker-php-ext-enable xdebug
- vendor/bin/phpunit --coverage-text --colors=never
stage: check
check-code-70:
extends: .check-code-template
variables:
PHP_VERSION: '7.0'
check-code-71:
extends: .check-code-template
variables:
PHP_VERSION: '7.1'
check-code-72:
extends: .check-code-template
variables:
PHP_VERSION: '7.2'
phpunit-70:
extends: .phpunit-template
variables:
PHP_VERSION: '7.0'
phpunit-71:
extends: .phpunit-template
variables:
PHP_VERSION: '7.1'
phpunit-72:
extends: .phpunit-template
variables:
PHP_VERSION: '7.2'