1
0
mirror of https://github.com/danog/parallel.git synced 2024-11-29 20:29:00 +01:00
parallel/.travis.yml

51 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2015-08-31 04:58:02 +02:00
language: php
php:
2016-08-19 00:36:58 +02:00
- 7.1
2017-11-25 02:21:32 +01:00
- 7.2
2019-01-10 18:47:24 +01:00
- 7.3
2020-02-11 00:30:50 +01:00
- 7.4
2016-08-19 00:36:58 +02:00
- nightly
2015-08-31 04:58:02 +02:00
sudo: false
2016-08-19 00:41:17 +02:00
matrix:
allow_failures:
- php: nightly
fast_finish: true
2017-12-04 18:49:05 +01:00
env:
- AMP_DEBUG=true
before_install:
2020-02-11 00:30:50 +01:00
# 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
2017-12-04 18:49:05 +01:00
2015-08-31 04:58:02 +02:00
install:
2017-12-02 13:54:56 +01:00
- composer update -n --prefer-dist
2020-02-11 00:30:50 +01:00
# 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;
2017-07-20 06:27:51 +02:00
fi
2020-02-11 00:30:50 +01:00
# ext-parallel is only supported on PHP 7.2+
- if [ "$TRAVIS_PHP_VERSION" != "7.1" ]; then
travis/install-parallel.sh;
fi
2017-12-04 18:49:05 +01: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-31 04:58:02 +02:00
script:
2019-02-18 17:01:29 +01:00
- vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
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-31 04:58:02 +02:00
after_script:
2017-12-04 18:49:05 +01:00
- ./coveralls.phar -v
2018-10-07 16:50:45 +02:00
cache:
directories:
- $HOME/.composer/cache
- $HOME/.php-cs-fixer
- $HOME/.local