From a1bd230ecab65952498be38d18d466c993e83e11 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Sat, 2 Dec 2017 20:32:00 -0600 Subject: [PATCH] Define target platform in composer.json and fix .travis.yml --- .travis.yml | 16 +++++++++++----- composer.json | 5 +++++ 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index fd7ed56..24a51db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/composer.json b/composer.json index e43b62a..80a51e8 100644 --- a/composer.json +++ b/composer.json @@ -45,5 +45,10 @@ "psr-4": { "Amp\\ByteStream\\Test\\": "test" } + }, + "config": { + "platform": { + "php": "7.0.0" + } } }