-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
35 lines (34 loc) · 901 Bytes
/
.gitlab-ci.yml
File metadata and controls
35 lines (34 loc) · 901 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
.tests:
stage: test
before_script:
- apt-get update -yqq > /dev/null
- apt-get install git zlib1g-dev -yqq > /dev/null
- echo "memory_limit = 256M" >> "$PHP_INI_DIR/php.ini"
- docker-php-ext-install zip > /dev/null
- pecl install xdebug > /dev/null
- pecl install trader > /dev/null
- docker-php-ext-enable trader
- curl -sS https://getcomposer.org/installer | php > /dev/null
- php composer.phar update
script:
- vendor/bin/phpunit --configuration ./phpunit.xml
- docker-php-ext-enable xdebug
- vendor/bin/phpunit --coverage-text --colors=never --configuration ./phpunit_coverage.xml
cache:
paths:
- vendor/
test:7.0:
image: php:7.0
extends: .tests
test:7.1:
image: php:7.1
extends: .tests
test:7.2:
image: php:7.2
extends: .tests
test:7.3:
image: php:7.3
extends: .tests
test:7.4:
image: php:7.4
extends: .tests