1
0
mirror of https://github.com/danog/process.git synced 2024-11-26 20:24:43 +01:00

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

This commit is contained in:
Aaron Piotrowski 2017-12-02 21:14:26 -06:00
parent f1bf550910
commit 8dbb2d133c
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB
3 changed files with 17 additions and 6 deletions

View File

@ -13,18 +13,24 @@ matrix:
- php: nightly - php: nightly
fast_finish: true fast_finish: true
env:
- AMP_DEBUG=true
before_install:
- phpenv config-rm xdebug.ini || echo "No xdebug config."
install: install:
# --ignore-platform-reqs, because https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2722 - composer update -n --prefer-dist
- composer update -n --prefer-dist --ignore-platform-reqs - wget https://github.com/php-coveralls/php-coveralls/releases/download/v1.0.2/coveralls.phar
- composer require satooshi/php-coveralls dev-master --ignore-platform-reqs - 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:
- php vendor/bin/coveralls -v - ./coveralls.phar -v
cache: cache:
directories: directories:
- $HOME/.composer/cache - $HOME/.composer/cache/files

View File

@ -32,7 +32,7 @@ install:
- cd c:\projects\amphp - cd c:\projects\amphp
- appveyor DownloadFile https://getcomposer.org/composer.phar - appveyor DownloadFile https://getcomposer.org/composer.phar
- php composer.phar install --prefer-dist --no-progress - php composer.phar install --prefer-dist --no-progress
- php composer.phar require satooshi/php-coveralls dev-master - php composer.phar require php-coveralls/php-coveralls ^1.0.2
# https://ci.appveyor.com/tools/encrypt # https://ci.appveyor.com/tools/encrypt
environment: environment:

View File

@ -32,5 +32,10 @@
"Amp\\Process\\": "lib" "Amp\\Process\\": "lib"
}, },
"files": ["lib/constants.php"] "files": ["lib/constants.php"]
},
"config": {
"platform": {
"php": "7.0.0"
}
} }
} }