-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
28 lines (22 loc) · 916 Bytes
/
.travis.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
language: php
php:
- 7.2
- 7.3
- 7.4
- 8.0
sudo: false
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
- travis_retry composer require --dev php-coveralls/php-coveralls
- travis_retry composer require --dev jakub-onderka/php-parallel-lint
- travis_retry composer require --dev jakub-onderka/php-console-highlighter
- travis_retry echo 'date.timezone = "Europe/Prague"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- travis_retry echo 'memory_limit = "2048M"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
script:
- ./vendor/bin/parallel-lint src testing
- ./vendor/bin/phpunit --coverage-text --coverage-clover clover --bootstrap testing/bootstrap.php
- php -i | grep memory_limit
- "! (composer outdated --direct | grep ^)"
after_script:
- ./vendor/bin/coveralls