From 803f8a7c0cf942d62279d37f9a022947a1c7d798 Mon Sep 17 00:00:00 2001 From: Sergey Podgornyy Date: Thu, 25 Jan 2018 11:59:08 +0100 Subject: [PATCH] Change travis config --- .travis.yml | 6 +-- composer.json | 1 + coverage.clover | 128 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 132 insertions(+), 3 deletions(-) create mode 100644 coverage.clover diff --git a/.travis.yml b/.travis.yml index fd4ba39..6434f1a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ language: php php: - 7.0 - 7.1 - - hhvm + - 7.2 - nightly # This triggers builds to run on the new TravisCI infrastructure. @@ -24,8 +24,8 @@ before_script: - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist script: - - vendor/bin/phpcs --standard=psr2 src/ - - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover + - composer check-style + - composer test-with-coverage after_script: - | diff --git a/composer.json b/composer.json index 6e77cdf..d666354 100644 --- a/composer.json +++ b/composer.json @@ -36,6 +36,7 @@ }, "scripts": { "test": "phpunit", + "test-with-coverage": "phpunit --coverage-text --coverage-clover=coverage.clover", "check-style": "phpcs -p --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1", "fix-style": "phpcbf -p --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1" }, diff --git a/coverage.clover b/coverage.clover new file mode 100644 index 0000000..fe9822b --- /dev/null +++ b/coverage.clover @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +