2018-03-12 03:23:55 +00:00
|
|
|
language: php
|
|
|
|
dist: trusty
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- php: 5.3
|
|
|
|
dist: precise
|
|
|
|
env: COMPOSER_FLAGS="--prefer-lowest"
|
|
|
|
- php: 5.4
|
|
|
|
- php: 5.5
|
|
|
|
- php: 5.6
|
|
|
|
env: SCRUTINIZER=1
|
|
|
|
- php: 7.0
|
|
|
|
env: COMPOSER_FLAGS="--prefer-lowest"
|
|
|
|
- php: 7.1
|
|
|
|
env: CS_FIXER=1
|
|
|
|
- php: 7.2
|
2019-11-16 16:51:01 +00:00
|
|
|
- php: 7.3
|
2018-03-12 03:23:55 +00:00
|
|
|
env: BENCHMARK=1
|
2020-08-04 05:31:44 +01:00
|
|
|
- php: 7.4snapshot
|
2018-03-12 03:23:55 +00:00
|
|
|
fast_finish: true
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- composer self-update
|
|
|
|
- composer update $COMPOSER_FLAGS --prefer-dist
|
|
|
|
|
|
|
|
script:
|
|
|
|
- stty cols 120
|
|
|
|
- if [ "$CS_FIXER" == 1 ]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.13.1/php-cs-fixer.phar && php php-cs-fixer.phar fix --dry-run --diff; fi
|
|
|
|
- mkdir -p build/logs
|
|
|
|
- ./vendor/bin/phpunit --coverage-clover=coverage.xml
|
|
|
|
|
|
|
|
after_script:
|
|
|
|
- if [ "$SCRUTINIZER" == 1 ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi
|
|
|
|
- if [ "$BENCHMARK" == 1 ]; then php test/benchmark/run.php 10; fi
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
irc: "irc.freenode.net#masterminds"
|