1
0
mirror of https://github.com/danog/parallel.git synced 2025-01-22 14:01:14 +01:00
parallel/.travis.yml

42 lines
988 B
YAML
Raw Permalink Normal View History

2015-08-30 21:58:02 -05:00
language: php
php:
2016-01-22 23:32:07 -06:00
- 7.0
2016-08-18 17:36:58 -05:00
- 7.1
2017-11-24 19:21:32 -06:00
- 7.2
2016-08-18 17:36:58 -05:00
- nightly
2015-08-30 21:58:02 -05:00
sudo: false
2016-08-18 17:41:17 -05:00
matrix:
allow_failures:
- php: nightly
fast_finish: true
2017-12-04 11:49:05 -06:00
env:
- AMP_DEBUG=true
before_install:
- phpenv config-rm xdebug.ini || echo "No xdebug config."
2015-08-30 21:58:02 -05:00
install:
2017-12-02 13:54:56 +01:00
- composer update -n --prefer-dist
2017-07-19 23:27:51 -05:00
# pthreads is now only supported on PHP 7.2+
- if [ "$TRAVIS_PHP_VERSION" != "7.0" ] && [ "$TRAVIS_PHP_VERSION" != "7.1" ]; then
travis/install-pthreads.sh;
2017-07-19 23:27:51 -05:00
fi
2017-12-04 11:49:05 -06:00
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v1.0.2/coveralls.phar
2017-12-02 13:54:56 +01:00
- chmod +x coveralls.phar
2015-08-30 21:58:02 -05:00
script:
2017-12-24 22:26:29 +01:00
# phpdbg prints out of memory with pthreads enabled
- if [ "$TRAVIS_PHP_VERSION" = "7.0" ] || [ "$TRAVIS_PHP_VERSION" = "7.1" ]; then
phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml;
else
vendor/bin/phpunit;
fi
2017-06-17 18:18:29 +02:00
- PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer --diff --dry-run -v fix
2015-08-30 21:58:02 -05:00
after_script:
2017-12-04 11:49:05 -06:00
- ./coveralls.phar -v