1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-02 09:37:57 +01:00
parallel/.travis.yml
Aaron Piotrowski 91d3e43230
Fix
2020-02-10 12:56:26 -06:00

51 lines
1.1 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:
- ./coveralls.phar -v
cache:
directories:
- $HOME/.composer/cache
- $HOME/.php-cs-fixer
- $HOME/.local