Skip to content

Commit

Permalink
Define target platform in composer.json and fix .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 3, 2017
1 parent e103ca8 commit a1bd230
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,23 @@ matrix:
- php: nightly
fast_finish: true

before_script:
# --ignore-platform-reqs, because https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2722
- composer update -n --prefer-dist --ignore-platform-reqs
- composer require satooshi/php-coveralls dev-master --ignore-platform-reqs
env:
- AMP_DEBUG=true

before_install:
- phpenv config-rm xdebug.ini || echo "No xdebug config."

install:
- 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:
- php vendor/bin/coveralls -v
- ./coveralls.phar -v

cache:
directories:
Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,10 @@
"psr-4": {
"Amp\\ByteStream\\Test\\": "test"
}
},
"config": {
"platform": {
"php": "7.0.0"
}
}
}

0 comments on commit a1bd230

Please sign in to comment.