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:
parent
c8163fd735
commit
917aaca671
15
.travis.yml
15
.travis.yml
@ -13,20 +13,25 @@ matrix:
|
|||||||
- php: nightly
|
- php: nightly
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
install:
|
env:
|
||||||
# --ignore-platform-reqs, because https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2722
|
- AMP_DEBUG=true
|
||||||
- composer update -n --prefer-dist --ignore-platform-reqs
|
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- phpenv config-rm xdebug.ini || echo "No xdebug config."
|
||||||
|
|
||||||
|
install:
|
||||||
- travis/install-eio.sh
|
- travis/install-eio.sh
|
||||||
- travis/install-uv.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:
|
script:
|
||||||
- phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
|
- 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
|
- PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer --diff --dry-run -v fix
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
- composer require php-coveralls/php-coveralls ^1.0.2 --ignore-platform-reqs
|
- ./coveralls.phar
|
||||||
- php vendor/bin/coveralls -v
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
|
@ -51,5 +51,10 @@
|
|||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Amp\\File\\Test\\": "test"
|
"Amp\\File\\Test\\": "test"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"platform": {
|
||||||
|
"php": "7.0.0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user