forked from getopt-php/getopt-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
45 lines (40 loc) · 1.19 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
.php-unit-test:
stage: test
variables:
COMPOSER_CACHE_DIR: "$CI_PROJECT_DIR/.composer"
cache:
paths:
- .composer
before_script:
- mkdir -p .composer build/logs
- composer install --no-interaction
script:
- composer test -- --colors=always
php71-unit-test:
extends: .php-unit-test
image: iras/php7-composer:1
php72-unit-test:
extends: .php-unit-test
image: iras/php7-composer:2
php73-unit-test:
extends: .php-unit-test
image: iras/php7-composer:3
php74-unit-test:
extends: .php-unit-test
image: iras/php7-composer:4
variables:
CI_NAME: "gitalb-ci"
CI_BUILD_NUMBER: "$CI_JOB_ID"
CI_BRANCH: "$CI_COMMIT_REF_NAME"
CI_BUILD_URL: "$CI_JOB_URL"
script:
- php -dzend_extension=xdebug.so -dxdebug.mode=coverage vendor/bin/phpunit -c phpunit.xml --coverage-clover=build/coverage.xml --coverage-text --colors=always
after_script:
- composer require php-coveralls/php-coveralls:~2.4@stable
- php vendor/bin/php-coveralls -v -x build/coverage.xml
php80-unit-test:
extends: .php-unit-test
image: iras/php8-composer:0
before_script:
- mkdir -p .composer build/logs
- composer install --no-interaction --ignore-platform-reqs