From 137ff52194c6421acc93486414173a416f4c699f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Hochd=C3=B6rfer?= Date: Sat, 25 Mar 2017 16:55:18 +0100 Subject: [PATCH] Enable coveralls support --- .coveralls.yml | 3 +++ .travis.yml | 10 +++++++++- build.xml | 9 +++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..0925971 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,3 @@ +coverage_clover: clover.xml +json_path: coveralls-upload.json + diff --git a/.travis.yml b/.travis.yml index 717f459..5b7a61f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,10 @@ matrix: include: - php: 7.0 - php: 7.1 + env: + - TEST_COVERAGE=true +install: + - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev satooshi/php-coveralls ; fi before_script: - composer self-update @@ -13,4 +17,8 @@ script: - composer validate - ./vendor/bin/phing security:check - ./vendor/bin/phing sniff - - ./vendor/bin/phing unit + - if [[ $TEST_COVERAGE == 'true' ]]; then ./vendor/bin/phing unit-with-coverage ; fi + - if [[ $TEST_COVERAGE != 'true' ]]; then ./vendor/bin/phing unit ; fi + +after_script: + - if [[ $TEST_COVERAGE == 'true' ]]; then ./vendor/bin/coveralls -v ; fi diff --git a/build.xml b/build.xml index 2de6ad5..3517eee 100644 --- a/build.xml +++ b/build.xml @@ -43,4 +43,13 @@ checkreturn="true"> + + + + + + +