From 87eb722b97346017f9b34210bcec57a735fe7ac1 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Mon, 22 Apr 2019 11:53:49 -0400 Subject: [PATCH 1/2] after_success script added --- .travis.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 738eb3f5..f90d60cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -75,8 +75,8 @@ before_script: fi script: - # Execute unit tests with coverage if specified, otherwise without coverage - - | + # Execute unit tests with coverage if specified, otherwise without coverage + - | if [ ! -z "$WP_VERSION" ]; then if [ "$COVERAGE" == "1" ]; then vendor/bin/codecept run wpunit --coverage --coverage-xml @@ -84,8 +84,14 @@ script: vendor/bin/codecept run wpunit fi fi - - | + - | if [ "$PHPCS" == "1" ]; then vendor/bin/phpcs wp-graphql-woocommerce.php access-functions.php src/*.php --standard=WordPress fi +after_success: + # Runs Coveralls.io client + - | + if [ "$COVERAGE" == "1" ]; then + travis_retry php vendor/bin/php-coveralls -v + fi From 60106fd9795c0ddd1e8f492a5572bf2dcec79e6e Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Mon, 22 Apr 2019 12:15:42 -0400 Subject: [PATCH 2/2] .travis.yml updated --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index f90d60cc..17f42410 100644 --- a/.travis.yml +++ b/.travis.yml @@ -61,6 +61,7 @@ before_script: composer install-wp-tests if [ "$COVERAGE" == "1" ]; then # Install Coveralls + mkdir -p build/logs COMPOSER_MEMORY_LIMIT=-1 travis_retry composer require php-coveralls/php-coveralls fi COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update --prefer-source --no-interaction