Hashar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/113958
Change subject: Add json-lint.php command to -jslint jobs
......................................................................
Add json-lint.php command to -jslint jobs
The -jslint jobs are already present on repositories having JavaScript
files and they are triggered by Zuul whenever a .json file is modified.
Hence, I guess we can make -jslint jobs to test both jshint and validate
json.
bug: 58279
Change-Id: Ied5a9c37037f1054dcf3f4c3598a617a4eced873
---
M job-templates.yaml
M macro.yaml
M mediawiki-extensions.yaml
M mediawiki.yaml
4 files changed, 8 insertions(+), 0 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/integration/jenkins-job-builder-config
refs/changes/58/113958/1
diff --git a/job-templates.yaml b/job-templates.yaml
index 218ca5b..2d780c4 100644
--- a/job-templates.yaml
+++ b/job-templates.yaml
@@ -20,6 +20,7 @@
- zuul
builders:
- jshint
+ - json-lint-php
- job-template:
name: '{name}-csslint'
diff --git a/macro.yaml b/macro.yaml
index a683566..3861673 100644
--- a/macro.yaml
+++ b/macro.yaml
@@ -67,6 +67,11 @@
- jshint-in:
dir: '$WORKSPACE'
+- builder:
+ name: json-lint-php
+ builders:
+ - shell: /srv/deployment/integration/slave-scripts/bin/json-lint.php .
+
# Wrapper around cucumber
# FIXME should be some shell scripts instead
#
diff --git a/mediawiki-extensions.yaml b/mediawiki-extensions.yaml
index ac9b7b0..3c9ac50 100644
--- a/mediawiki-extensions.yaml
+++ b/mediawiki-extensions.yaml
@@ -10,6 +10,7 @@
- zuul
builders:
- jshint
+ - json-lint-php
- job-template:
name: '{name}-{ext-name}-csslint'
diff --git a/mediawiki.yaml b/mediawiki.yaml
index 2b41d1c..f88ef65 100644
--- a/mediawiki.yaml
+++ b/mediawiki.yaml
@@ -28,6 +28,7 @@
- zuul
builders:
- jshint
+ - json-lint-php
# Generic job to run QUnit
- job-template:
--
To view, visit https://gerrit.wikimedia.org/r/113958
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ied5a9c37037f1054dcf3f4c3598a617a4eced873
Gerrit-PatchSet: 1
Gerrit-Project: integration/jenkins-job-builder-config
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits