From 16f9dea4ab659346930a8648e88029babf0e6d09 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Tue, 16 Jan 2018 20:28:42 +0000 Subject: [PATCH] BUILD/TEST TOOLS: Report Travis test results to make/hosting PHPUnit test results Send the core test results to make/hosting in order to improve the alerting. See: https://github.com/WordPress/phpunit-test-reporter/issues/45 Fixes #43099 Props danielbachhuber git-svn-id: https://develop.svn.wordpress.org/trunk@42492 602fd350-edb4-49c9-b593-d223f7449a82 --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index e939cbab26..f8a569f276 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,7 @@ matrix: - php: 7.2 - php: 7.1 - php: 7.0 + env: WP_TEST_REPORTER=true - php: 5.6 - php: 5.6 env: WP_TRAVIS_OBJECT_CACHE=true @@ -101,6 +102,14 @@ before_script: - svn --version - locale -a script: grunt $WP_TRAVISCI +after_script: +- | + if [[ "$WP_TEST_REPORTER" == "true" ]]; then + git clone https://github.com/WordPress/phpunit-test-runner.git test-runner + export WPT_PREPARE_DIR=$(pwd) + export WPT_TEST_DIR=$(pwd) + php test-runner/report.php + fi notifications: slack: rooms: