From 3cc44bb15891c13688ba805aacde015f05ae6698 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Wed, 22 Aug 2018 16:35:13 -0700
Subject: [PATCH] Capture PHPUnit reports

Depends on GitLab 11.2.

Fixes #3
---
 .gitlab-ci.yml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f71f871..fc418af 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,6 +32,9 @@ PHPunit:PHP5.3:MySQL:
     - find . -type "f" -iname "*.php" | xargs -L "1" php -l
     - phpcs -n
     - phpunit
+  artifacts:
+    reports:
+      junit: /tmp/wordpress-tests-lib/tests/phpunit/build/logs/junit.xml
 
 PHPunit:PHP5.6:MySQL:
   image: containers.ethitter.com:443/docker/images/php:5.6
@@ -41,6 +44,9 @@ PHPunit:PHP5.6:MySQL:
     - find . -type "f" -iname "*.php" | xargs -L "1" php -l
     - phpcs -n
     - phpunit
+  artifacts:
+    reports:
+      junit: /tmp/wordpress-tests-lib/tests/phpunit/build/logs/junit.xml
 
 PHPunit:PHP7.0:MySQL:
   image: containers.ethitter.com:443/docker/images/php:7.0
@@ -50,6 +56,9 @@ PHPunit:PHP7.0:MySQL:
     - find . -type "f" -iname "*.php" | xargs -L "1" php -l
     - phpcs -n
     - phpunit
+  artifacts:
+    reports:
+      junit: /tmp/wordpress-tests-lib/tests/phpunit/build/logs/junit.xml
 
 PHPunit:PHP7.1:MySQL:
   image: containers.ethitter.com:443/docker/images/php:7.1
@@ -59,6 +68,9 @@ PHPunit:PHP7.1:MySQL:
     - find . -type "f" -iname "*.php" | xargs -L "1" php -l
     - phpcs -n
     - phpunit
+  artifacts:
+    reports:
+      junit: /tmp/wordpress-tests-lib/tests/phpunit/build/logs/junit.xml
 
 PHPunit:PHP7.2:MySQL:
   image: containers.ethitter.com:443/docker/images/php:7.2
@@ -68,3 +80,6 @@ PHPunit:PHP7.2:MySQL:
     - find . -type "f" -iname "*.php" | xargs -L "1" php -l
     - phpcs -n
     - phpunit
+  artifacts:
+    reports:
+      junit: /tmp/wordpress-tests-lib/tests/phpunit/build/logs/junit.xml
-- 
GitLab