From a29fe378a816b48c5c6eda39dfc0a807187c3dcc Mon Sep 17 00:00:00 2001 From: Emir Beganovic Date: Thu, 16 Nov 2017 15:01:57 +0100 Subject: [PATCH 1/3] Add codecov --- .travis.yml | 1 + phpunit.xml.dist | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 998e438d92..27c93b6864 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,6 +32,7 @@ before_script: script: - if [ $TRAVIS_PHP_VERSION != 7.0 ]; then vendor/phpunit/phpunit/phpunit --configuration $TEST_CONFIG --colors ; fi - if [ $TRAVIS_PHP_VERSION = 7.0 ]; then vendor/phpunit/phpunit/phpunit --configuration $TEST_CONFIG --colors --coverage-text ; fi + - bash <(curl -s https://codecov.io/bash) # - if [ $TRAVIS_PHP_VERSION != 5.6 ] && [ $TRAVIS_PHP_VERSION != 7.0 ]; then vendor/phpunit/phpunit/phpunit --configuration $TEST_CONFIG --colors ; fi # - if [ $TRAVIS_PHP_VERSION = 5.6 ] || [ $TRAVIS_PHP_VERSION = 7.0 ]; then vendor/phpunit/phpunit/phpunit --configuration $TEST_CONFIG --colors --coverage-text ; fi diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 63f1ec70d6..42dd295a79 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -23,4 +23,7 @@ + + + From 2c63dc1f1e12e09a4704f497ab27e44ac48891f1 Mon Sep 17 00:00:00 2001 From: Emir Beganovic Date: Thu, 16 Nov 2017 15:19:27 +0100 Subject: [PATCH 2/3] Simplify --- .travis.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 27c93b6864..f9e063756e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,11 +30,8 @@ before_script: - composer install script: - - if [ $TRAVIS_PHP_VERSION != 7.0 ]; then vendor/phpunit/phpunit/phpunit --configuration $TEST_CONFIG --colors ; fi - - if [ $TRAVIS_PHP_VERSION = 7.0 ]; then vendor/phpunit/phpunit/phpunit --configuration $TEST_CONFIG --colors --coverage-text ; fi + - vendor/bin/phpunit --configuration $TEST_CONFIG --colors --coverage-clover=coverage.xml - bash <(curl -s https://codecov.io/bash) -# - if [ $TRAVIS_PHP_VERSION != 5.6 ] && [ $TRAVIS_PHP_VERSION != 7.0 ]; then vendor/phpunit/phpunit/phpunit --configuration $TEST_CONFIG --colors ; fi -# - if [ $TRAVIS_PHP_VERSION = 5.6 ] || [ $TRAVIS_PHP_VERSION = 7.0 ]; then vendor/phpunit/phpunit/phpunit --configuration $TEST_CONFIG --colors --coverage-text ; fi notifications: irc: "irc.freenode.org#pdepend" From 9077570ce407bc758ad737beaa396c1c7f7d2d8d Mon Sep 17 00:00:00 2001 From: Emir Beganovic Date: Thu, 16 Nov 2017 15:39:17 +0100 Subject: [PATCH 3/3] Fix for code coverage --- phpunit.xml.dist | 1 + 1 file changed, 1 insertion(+) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 42dd295a79..9a77ad2962 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -18,6 +18,7 @@ vendor/ + src/test src/main/php/PDepend/DbusUI/ResultPrinter.php