From 0bec6e9c9c0f3018d1191c2098a55896df32c916 Mon Sep 17 00:00:00 2001 From: Alex Masterov Date: Sat, 4 Feb 2017 04:51:49 +0300 Subject: [PATCH] Improve Travis configuration --- .travis.yml | 10 ++++++---- composer.json | 3 +++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6057627..77dac8a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,9 @@ language: php +php: + - 7.0 + - 7.1 + sudo: false cache: @@ -13,17 +17,15 @@ git: matrix: fast_finish: true include: - - php: 5.6 - php: 7 env: - COMPOSER_FLAGS="--prefer-stable" - - php: 7.1 before_script: - - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source --ignore-platform-reqs + - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source script: - - vendor/bin/phpunit --report-useless-tests + - composer test after_script: - bash -c '[[ -f "build/logs/clover.xml" ]] && wget https://scrutinizer-ci.com/ocular.phar' diff --git a/composer.json b/composer.json index 402077c..ad2a8f4 100644 --- a/composer.json +++ b/composer.json @@ -15,6 +15,9 @@ "stackexchange", "stackoverflow" ], + "scripts": { + "test": "phpunit" + }, "require": { "league/oauth2-client": "^2.2" },