mirror of
https://github.com/danog/parallel.git
synced 2024-11-30 04:39:01 +01:00
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
language: php
|
|
|
|
php:
|
|
- 7.1
|
|
- 7.2
|
|
- 7.3
|
|
- 7.4
|
|
- nightly
|
|
|
|
sudo: false
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- php: nightly
|
|
fast_finish: true
|
|
|
|
env:
|
|
- AMP_DEBUG=true
|
|
|
|
before_install:
|
|
# xdebug causes hangs on PHP 7.1 and 7.2
|
|
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ] || [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then
|
|
phpenv config-rm xdebug.ini || echo "No xdebug config.";
|
|
fi
|
|
|
|
install:
|
|
- composer update -n --prefer-dist
|
|
# ext-pthreads is only supported on PHP 7.2 and 7.3
|
|
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ] || [ "$TRAVIS_PHP_VERSION" == "7.3" ]; then
|
|
travis/install-pthreads.sh;
|
|
fi
|
|
# ext-parallel is only supported on PHP 7.2+
|
|
- if [ "$TRAVIS_PHP_VERSION" != "7.1" ]; then
|
|
travis/install-parallel.sh;
|
|
fi
|
|
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v1.0.2/coveralls.phar
|
|
- chmod +x coveralls.phar
|
|
|
|
script:
|
|
- vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
|
|
- PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer --diff --dry-run -v fix
|
|
|
|
after_script:
|
|
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.2.0/php-coveralls.phar
|
|
- chmod +x php-coveralls.phar
|
|
- travis_retry ./php-coveralls.phar -v
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|
|
- $HOME/.php-cs-fixer
|
|
- $HOME/.local
|