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

Change subject: mw-run-phpunit-hhvm: mw tests with HHVM!
......................................................................


mw-run-phpunit-hhvm: mw tests with HHVM!

Bug: 62278
Change-Id: I7dcec63e639ce0ad4383931dc965de997819b97e
---
A bin/mw-run-phpunit-hhvm.sh
1 file changed, 49 insertions(+), 0 deletions(-)

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



diff --git a/bin/mw-run-phpunit-hhvm.sh b/bin/mw-run-phpunit-hhvm.sh
new file mode 100755
index 0000000..9805876
--- /dev/null
+++ b/bin/mw-run-phpunit-hhvm.sh
@@ -0,0 +1,49 @@
+#!/bin/bash -e
+# Runs a MediaWiki PHPUnit group
+#
+# By default it will run all tests besides the one listed in
+# PHPUNIT_EXCLUDE_GROUP.
+#
+# Passing 'databaseless' or 'misc' will run buildin list of tests
+#
+# This script replaces ant targets that were available in
+# integration/jenkins.git under /jobs/_shared/build.xml
+#
+
+#######################################################################
+# Configuration
+#######################################################################
+
+. "/srv/deployment/integration/slave-scripts/bin/mw-set-env.sh"
+
+# Path to PHPUnit as deployed by Wikimedia deployment system.
+#
+# The path is passed to MediaWiki php wrapper using --with-phpunitdir. It
+# should match a local checkout of integration/phpunit.git repository which
+# contains PHPUnit as it is installed by Composer. The local copy should be
+# deployed on all slaves via the role::ci::slave puppet class includes:
+# deployment::target { # 'contint-production-slaves': }
+#
+#
+# WARNING: don't forget to update mw-run-phpunit-allexts.sh as well
+#
+PHPUNIT_DIR="/srv/deployment/integration/phpunit/vendor/phpunit/phpunit"
+
+# Setup Junit destination
+LOG_DIR="$WORKSPACE/log"
+mkdir -p "$LOG_DIR"
+JUNIT_DEST="$LOG_DIR/junit-mw-phpunit.xml"
+
+# Make sure to compress MediaWiki log dir after phpunit has ran
+function compress_log_dir() {
+    echo "Compressing logs under $LOG_DIR"
+       gzip --verbose --force --best "$LOG_DIR"/*.log || :
+}
+trap compress_log_dir EXIT
+
+set -x
+cd "${MW_INSTALL_PATH}/tests/phpunit"
+hhvm --php phpunit.php \
+       --with-phpunitdir "$PHPUNIT_DIR" \
+       --conf "$MW_INSTALL_PATH/LocalSettings.php" \
+       --log-junit $JUNIT_DEST

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I7dcec63e639ce0ad4383931dc965de997819b97e
Gerrit-PatchSet: 1
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