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
| language: php
|
| php:
| - 5.5
| - 5.6
| - 7.0
| - 7.1
| - 7.2
|
| matrix:
| allow_failures:
| - php: 5.5
|
| env:
| - COMPOSER_OPTS=""
| - COMPOSER_OPTS="--prefer-lowest"
|
| install:
| - if [[ "${TRAVIS_PHP_VERSION}" == "5.5" ]]; then composer require phpunit/phpunit:^4.8.36 phpspec/phpspec:^2 --prefer-dist --update-with-dependencies; fi
| - if [[ "${TRAVIS_PHP_VERSION}" == "7.2" ]]; then composer require phpunit/phpunit:^6.0 --prefer-dist --update-with-dependencies; fi
| - travis_retry composer update --prefer-dist $COMPOSER_OPTS
|
| script:
| - vendor/bin/phpspec run
| - vendor/bin/phpunit
|
| after_script:
| - wget https://scrutinizer-ci.com/ocular.phar'
| - php ocular.phar code-coverage:upload --format=php-clover ./clover/phpunit.xml'
|
|