jenkins-bot has submitted this change and it was merged.

Change subject: mw-run-phpunit-allexts.sh replaces mw-phpunit-allexts macro
......................................................................


mw-run-phpunit-allexts.sh replaces mw-phpunit-allexts macro

Let us more easily tweak all jobs by simply editing the shell scripts
instead of having to refresh all dependant jobs.

Change-Id: I7eb5d4d0ccbb6563a37e988a2b7ea34140dd2271
---
A bin/mw-run-phpunit-allexts.sh
1 file changed, 18 insertions(+), 0 deletions(-)

Approvals:
  Hashar: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/bin/mw-run-phpunit-allexts.sh b/bin/mw-run-phpunit-allexts.sh
new file mode 100644
index 0000000..e0bd848
--- /dev/null
+++ b/bin/mw-run-phpunit-allexts.sh
@@ -0,0 +1,18 @@
+#!/bin/bash -xe
+# This script used to be a Jenkins Job Builder macro 'mw-phpunit-allexts'
+#
+# References:
+# bug: 42506
+# bug: 48147
+# Ib0fdffb97cdf237a49b43d7abaa81b81afe8c499
+
+JUNIT_DEST="$WORKSPACE/junit-phpunit-allexts.xml"
+
+# We have to move to the tests/phpunit directory where suite.xml is located or
+# the relative paths referenced in that file will not get properly resolved by
+# PHPUnit
+# The Jenkins publishers are usually expecting the .xml file to be at the root
+# of the workspace, so make sure we use an absolute path.
+cd "$WORKSPACE/tests/phpunit"
+
+php phpunit.php --log-junit "$JUNIT_DEST" --testsuite extensions

-- 
To view, visit https://gerrit.wikimedia.org/r/87324
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I7eb5d4d0ccbb6563a37e988a2b7ea34140dd2271
Gerrit-PatchSet: 4
Gerrit-Project: integration/jenkins
Gerrit-Branch: master
Gerrit-Owner: Hashar <has...@free.fr>
Gerrit-Reviewer: Hashar <has...@free.fr>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to