1
0
mirror of https://github.com/danog/file.git synced 2024-11-26 11:54:54 +01:00

Define target platform in composer.json and fix .travis.yml

This commit is contained in:
Aaron Piotrowski 2017-12-02 20:06:41 -06:00
parent c8163fd735
commit 917aaca671
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB
2 changed files with 15 additions and 5 deletions

View File

@ -13,20 +13,25 @@ matrix:
- php: nightly
fast_finish: true
install:
# --ignore-platform-reqs, because https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2722
- composer update -n --prefer-dist --ignore-platform-reqs
env:
- AMP_DEBUG=true
before_install:
- phpenv config-rm xdebug.ini || echo "No xdebug config."
install:
- travis/install-eio.sh
- travis/install-uv.sh
- composer update -n --prefer-dist
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v1.0.2/coveralls.phar
- chmod +x coveralls.phar
script:
- phpdbg -qrr 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:
- composer require php-coveralls/php-coveralls ^1.0.2 --ignore-platform-reqs
- php vendor/bin/coveralls -v
- ./coveralls.phar
cache:
directories:

View File

@ -51,5 +51,10 @@
"psr-4": {
"Amp\\File\\Test\\": "test"
}
},
"config": {
"platform": {
"php": "7.0.0"
}
}
}