Jforrester has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/284942

Change subject: build: Use composer to test phpcs
......................................................................

build: Use composer to test phpcs

Change-Id: I939d6f4d989cf21c0f817d262bf3e4acedcf2ffe
---
M .gitignore
A Doxyfile
A composer.json
3 files changed, 55 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Thanks 
refs/changes/42/284942/1

diff --git a/.gitignore b/.gitignore
index 1e430d8..735f570 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,5 @@
 node_modules
 docs
+composer.lock
+vendor
+doc
diff --git a/Doxyfile b/Doxyfile
new file mode 100644
index 0000000..38f26d8
--- /dev/null
+++ b/Doxyfile
@@ -0,0 +1,34 @@
+# Configuration file for Doxygen
+
+PROJECT_NAME           = Thanks
+PROJECT_BRIEF          = "MediaWiki Thanks extension"
+
+OUTPUT_DIRECTORY       = doc
+
+JAVADOC_AUTOBRIEF      = YES
+QT_AUTOBRIEF           = YES
+
+QUIET                  = YES
+WARNINGS               = YES
+WARN_IF_UNDOCUMENTED   = NO
+WARN_IF_DOC_ERROR      = NO
+WARN_NO_PARAMDOC       = NO
+
+EXCLUDE                = doc docs vendor node_modules
+FILE_PATTERNS          = *.php
+RECURSIVE              = YES
+
+HTML_DYNAMIC_SECTIONS  = YES
+GENERATE_TREEVIEW      = YES
+TREEVIEW_WIDTH         = 250
+
+GENERATE_LATEX         = NO
+
+HAVE_DOT               = YES
+DOT_FONTNAME           = Helvetica
+DOT_FONTSIZE           = 10
+TEMPLATE_RELATIONS     = YES
+CALL_GRAPH             = NO
+CALLER_GRAPH           = NO
+# Makes dot run faster. Requires graphviz >1.8.10
+DOT_MULTI_TARGETS      = YES
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..d3296db
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,18 @@
+{
+       "require-dev": {
+               "jakub-onderka/php-parallel-lint": "0.9.2",
+               "mediawiki/mediawiki-codesniffer": "0.6.0"
+       },
+       "scripts": {
+               "test": [
+                       "parallel-lint . --exclude vendor",
+                       "phpcs -p -s"
+               ],
+               "fix": [
+                       "phpcbf"
+               ],
+               "doc": [
+                       "doxygen"
+               ]
+       }
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I939d6f4d989cf21c0f817d262bf3e4acedcf2ffe
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Thanks
Gerrit-Branch: master
Gerrit-Owner: Jforrester <jforres...@wikimedia.org>

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

Reply via email to