1
0
mirror of https://github.com/danog/parallel.git synced 2024-11-27 04:44:56 +01:00
parallel/.travis.yml

40 lines
916 B
YAML
Raw Normal View History

2015-08-31 04:58:02 +02:00
language: php
php:
- 5.5
- 5.6
2015-08-31 23:13:12 +02:00
# - 7.0
2015-08-31 04:58:02 +02:00
sudo: false
install:
- git clone https://github.com/krakjoe/pthreads.git;
pushd pthreads;
if [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then
git checkout master;
else
git checkout seven;
fi;
phpize;
./configure;
make;
make install;
popd;
2015-08-31 19:44:19 +02:00
echo "extension=pthreads.so" >> "$(php -r 'echo php_ini_loaded_file();')"
2015-08-31 04:58:02 +02:00
- composer self-update
- composer install --no-interaction --prefer-source
script:
- if [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then
2015-08-31 19:44:19 +02:00
vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml;
2015-08-31 04:58:02 +02:00
else
2015-08-31 19:44:19 +02:00
phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml;
2015-08-31 04:58:02 +02:00
fi
after_script:
- composer require satooshi/php-coveralls dev-master
2015-08-31 19:44:19 +02:00
- vendor/bin/coveralls -v --exclude-no-stmt
notifications:
slack: icicleio:zLkB18HsYCz8TbdK7RVqbi48