Krinkle has uploaded a new change for review.
https://gerrit.wikimedia.org/r/52162
Change subject: QUnit: Add macro for QUnit and enable for test/mediawiki
......................................................................
QUnit: Add macro for QUnit and enable for test/mediawiki
Change-Id: Ic2cef3d4c8d1d6c6c47a68f0934ac666ff0751b2
---
M macro.yaml
M mediawiki.yaml
M test-mediawiki.yaml
3 files changed, 30 insertions(+), 0 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/integration/jenkins-job-builder-config
refs/changes/62/52162/1
diff --git a/macro.yaml b/macro.yaml
index 2d5941d..3df847e 100644
--- a/macro.yaml
+++ b/macro.yaml
@@ -62,6 +62,23 @@
- jshint-in:
dir: '$WORKSPACE'
+- builder:
+ name: qunit
+ builders:
+ - shell: |
+ TEST_ID = "$ZUUL_PROJECT/$ZUUL_COMMIT"
+ php $WORKSPACE/maintenance/install.php \
+ --server http://localhost:9412/ \
+ --script-path /$TEST_ID \
+ --db sqlite \
+ --db-file $WORKSPACE/wikidb.sqlite
+ ln -s $WORKSPACE /srv/localhost/qunit/$TEST_ID
+ /var/lib/jenkins/bin/wmfgrunt qunit
--qunit-url="http://localhost:9412/$TEST_ID/index.php?title=Special:JavaScriptTest/qunit"
+ gqec=$?
+ rm /srv/localhost/qunit/$TEST_ID
+ exit $gqec
+
+
# Has to be named something other than 'checkstyle' or python will
# go into infinite recursion when generating the jobs.
# JSHint considers all errors to be "high" priority except those
diff --git a/mediawiki.yaml b/mediawiki.yaml
index 8ad0e6f..c36b2c9 100644
--- a/mediawiki.yaml
+++ b/mediawiki.yaml
@@ -43,6 +43,17 @@
publishers:
- checkstyle-xml
+# Generic job to run QUnit
+- job-template:
+ name: '{name}-qunit'
+ defaults: use-zuul
+ scm:
+ - git-mwcore-nosubmodules
+ triggers:
+ - zuul
+ builders:
+ - qunit
+
- job-template:
name: '{name}-whitespaces'
defaults: use-zuul
diff --git a/test-mediawiki.yaml b/test-mediawiki.yaml
index acfeacd..5d77c6d 100644
--- a/test-mediawiki.yaml
+++ b/test-mediawiki.yaml
@@ -17,4 +17,6 @@
gerrit-name: test/mediawiki
jobs:
- 'test-mediawiki-dumpenv'
+ - '{name}-merge'
- '{name}-phpcs-HEAD'
+ - '{name}-qunit'
--
To view, visit https://gerrit.wikimedia.org/r/52162
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic2cef3d4c8d1d6c6c47a68f0934ac666ff0751b2
Gerrit-PatchSet: 1
Gerrit-Project: integration/jenkins-job-builder-config
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits