Commit graph

54 commits

Author SHA1 Message Date
libraryupgrader b49cebf8cb build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
  The following sniffs are failing and were disabled:
  * MediaWiki.Commenting.FunctionComment.WrongStyle

* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.18.1
  The following rules are failing and were disabled:
  * compat/compat

Additional changes:
* Added the "composer phan" command to conveniently run phan.

Change-Id: Icc5ae88b205d4b122efef7aef2826eb334b27820
2021-01-29 10:19:37 +00:00
libraryupgrader c44dfdf4cb build: Updating npm dependencies
* grunt-stylelint: 0.15.0 → 0.16.0
* stylelint-config-wikimedia: 0.10.1 → 0.10.3

Change-Id: I1eafcbd4ad4481faf9aefcc6b51b5a125a17aa45
2020-11-22 01:43:20 +00:00
libraryupgrader 831ca07708 build: Updating npm dependencies
* eslint-config-wikimedia: 0.16.2 → 0.17.0
  The following rules are failing and were disabled:
  * no-shadow

* grunt: 1.2.1 → 1.3.0

Change-Id: I4d5110b481ec491b7230cc689eda4f925ca66645
2020-09-05 13:48:38 +00:00
libraryupgrader 866a9e064b build: Updating grunt to 1.2.1
Change-Id: I84f446bb1b5de9262dcca5008ca17eb068bb7202
2020-07-18 05:30:44 +00:00
libraryupgrader d5641dd909 build: Updating eslint-config-wikimedia to 0.16.2
Change-Id: I87b42cbabd1eadfeebd8e988ef13d198837ee358
2020-07-15 23:12:00 +00:00
vidhi-mody 03bc4d3650 Selenium: Update to WebdriverIO v6
Update NPM packages: @wdio/* and webdriverio.

Bug: T250610
Change-Id: Ib014fdcd908fe6521fc73e024b965ead94a39d36
2020-06-25 00:55:49 +05:30
vidhi-mody f25ed7e705 Selenium: Update to WebdriverIO v5
Update NPM packages: webdriverio, wdio-mediawiki.

Replace NPM packages:
- wdio-mocha-framework with @wdio/mocha-framework.
- wdio-spec-reporter with @wdio/spec-reporter.

New NPM packages: @wdio/cli, @wdio/local-runner, @wdio/sync.

Replace:
- `browser.element` with `$`.
- `chromeOptions` with `'goog:chromeOptions'`.
- `password` with `mwPwd`.
- `username` with `mwUser`.
- `waitForVisible()` with `waitForDisplayed()`.

Bug: T250610
Change-Id: If7a5ee9588f082be18f27ee45a051ae956c688f5
2020-06-22 15:54:30 +00:00
Ed Sanders ffe3363d09 build: Update eslint-config-wikimedia to 0.16.1
Change-Id: I2ce14429f9440e69e36fa349847f58fb32862f2a
2020-06-15 16:19:00 +01:00
libraryupgrader df46509e1e build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 29.0.0 → 30.0.0

npm:
* eslint-config-wikimedia: 0.15.0 → 0.15.3
  The following rules are failing and were disabled:
  * mediawiki/class-doc

* grunt-stylelint: 0.14.0 → 0.15.0
* stylelint-config-wikimedia: 0.9.0 → 0.10.1

Change-Id: I6e55d7979dbf50f7919c62621957b765a40f4624
2020-04-22 08:44:15 +00:00
libraryupgrader 610dd6adfd build: Updating grunt-banana-checker to 0.9.0
Change-Id: Ic87b561f247f140d1e772d34c4b3b7f9426762b7
2020-04-19 03:52:47 +00:00
libraryupgrader 64b389fdfe build: Updating minimist to 1.2.5
* https://npmjs.com/advisories/1179

Change-Id: I5c0763efa647e01971afeb15017d31a991079fbc
2020-03-18 07:17:15 +00:00
libraryupgrader 410d092f79 build: Updating npm dependencies
* grunt-stylelint: 0.13.0 → 0.14.0
* stylelint-config-wikimedia: 0.8.0 → 0.9.0

Change-Id: I5fd7e6bd1a83ed8b7c09b967bda01e0c2dd88494
2020-02-20 21:10:50 +00:00
Ed Sanders 80ddee3956 build: Update linters
Change-Id: I713aafb891306fc21a776a7d4622c6a039798753
2019-12-12 11:20:49 +00:00
libraryupgrader b476ad7781 build: Updating grunt-stylelint to 0.11.1
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: I5e6a72e457fb656debdb721ed20b4d0efc5d4869
2019-10-21 03:06:43 +00:00
libraryupgrader 9bb30f1629 build: Updating npm dependencies
* lodash: 4.17.11 → 4.17.15
  * https://npmjs.com/advisories/1065
  * CVE-2019-10744
* wdio-mediawiki: 0.3.0 → 0.4.0

Change-Id: I06517f1a052ca42a8b62ccfa9c055c409b96837f
2019-08-02 01:47:20 +00:00
ephemeralwaves 05f3e66a9d Selenium: Fix failing test by only running tests tagged @daily
Changed `selenium-daily` npm script to only run tests tagged `@daily`
and removed `it.skip` on tests failing in beta cluster.

Bug:T227009
Change-Id: Id2edbfd941df098d326fa30ed9dc9f68e228f021
2019-07-05 10:58:19 +00:00
libraryupgrader 9a030c4bfe build: Updating npm dependencies for security issues
* Updated grunt to 1.0.4, addressing:
  * https://npmjs.com/advisories/788
  * https://npmjs.com/advisories/813
* Updated stylelint-config-wikimedia to 0.6.0, addressing:
  * https://npmjs.com/advisories/786

Committed package-lock.json (T179229) too.

Change-Id: I9a58f8acade9bd129474785831e8c8174896982c
2019-06-08 05:43:44 +00:00
James D. Forrester f7da14ec49 build: Upgrade wdio-mocha-framework to be node10 compatible
Change-Id: I5acbc6b161d8d856777f2bd6c80168f411549983
2019-06-03 14:46:36 -07:00
James D. Forrester b45ba9cda9 build: Upgrade wdio-mediawiki from 0.1.7 to 0.3.0
Bug: T223150
Change-Id: Ie29be986c2a50004802658b26f312ea5db08583f
2019-05-13 19:09:14 +01:00
James D. Forrester 94658a80c2 build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint
Bug: T220036
Change-Id: Iedc0e92345eeaa7400c87a2d29f67bff5ba38f4a
2019-05-07 20:44:20 +00:00
James D. Forrester 38b41c0f98 build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0
Change-Id: I6747b5e36f64d681b6f83461f0ebb9c9f88bea86
2019-04-03 15:57:20 -07:00
Ed Sanders 7ed027ddcf build: Update eslint-config-wikimedia to 0.10.1
Change-Id: I776585adab962c2b1d353d18d3a02b6662941b13
2019-02-06 01:42:53 +00:00
Volker E c2dba98a9d build: Update 'stylelint-config-wikimedia' to v0.5.0 and make pass
Change-Id: I2789e3b93d1fc5743ea94b946fcd3e3ba8798e5e
2019-01-09 18:42:06 -08:00
Ed Sanders 4d03a4856d Update eslint-config-wikimedia to 0.9.0
Change-Id: Icd7b0f4ca54275c31eb61a759e2c3c9ce0a18952
2018-11-27 22:48:32 +00:00
libraryupgrader 07d8da720b build: Updating npm dependencies for security issues
* Updated grunt-contrib-watch to 1.1.0, addressing:
  * https://npmjs.com/advisories/534
  * CVE-2017-16137
  * https://npmjs.com/advisories/577
  * CVE-2018-3721

Change-Id: I9551effaeda59a12cf56090479515521e76c0679
2018-10-13 18:09:42 +00:00
Ed Sanders 2c089e075d build: Update linters
Change-Id: I9747097fdf725992710f97d4ce4ea49fd611df1b
2018-09-11 23:46:52 +01:00
Željko Filipin 4a4ad9818a Selenium: Simplify selenium-daily NPM script
selenium-daily now just calls selenium-test. Environment variables are set up in
the Jenkins job, so they are removed.
selenium-daily might seem redundant, but it provides flexibility. In case a
repository does not want to run all tests daily, that's easily fixed by updating the
selenium-daily script.

Bug: T188742
Change-Id: I8090acd9a00c68a41784e72ae7400835b4eb6465
2018-08-29 15:08:42 +02:00
Željko Filipin 2abc4a9256 Selenium: Create selenium-daily npm script
The script is needed for the new Docker-based Jenkins jobs (running daily and targeting beta cluster).

Bug: T188742
Change-Id: I1cca2398857c693d9a8f4dbbb2cf9d25b5124f83
2018-07-06 14:45:09 +00:00
Željko Filipin 53d849b3c9 selenium: Make it possible to run tests from Echo folder
Until now, Echo tests had to be run from mediawiki/core folder.

Add an independant 'npm run selenium-test' entry point
for local development. It comes with a minimal wdio.conf.js file that contains
only non-default settings, and runs only specs from this extension.
This also makes it so that screenshots are saved to this repo's
log directory instead of core's.

Bug: T171848
Change-Id: I1396f8d856c6cb1ad9818abf4ba09a4fcefdcfdc
2018-06-22 14:17:05 +00:00
Volker E c9403011c8 build: Bring SVGO optimization to build step
Enabling SVGO automation with 'grunt-svgmin' and conservative
plugin settings to build step, among those:
- enable removeRasterImages and sortAttrs,
- disable cleanupIDs, removeDesc, removeTitle, removeViewBox &
  removeXMLProcInst and
- don't use multipass.

Also updating SVGs accordingly.

Bug: T185596
Change-Id: I2288c7576ac96f8b5c4d5b8671218fceefaf6037
2018-02-09 23:06:28 -08:00
Ed Sanders 2dc9a454d2 build: Update linters
Change-Id: I717ee9a58e6a8c12b54c64b46ebb2682b1ad5274
2018-02-04 21:23:28 +00:00
Ed Sanders 892ba8e5fe build: Update eslint and other linters
Change-Id: I68b74742bea0c3d4c8e359fd7850beaa6bbc4190
2017-10-17 13:53:08 +01:00
Antoine Musso b10b465ed2 Define npm peer dependency explicitly
npm 3 requires dependencies to be explicitly defined.

Bug: T172094
Change-Id: Ic640ccf0f577e47036d473892522ea758014fab4
2017-07-31 12:49:00 +02:00
Ed Sanders 571223a206 build: Update eslint to 0.4.0 and make pass
Change-Id: I30dd0e1ee56dbcbb7c60608a401179e2d37557ff
2017-05-04 20:57:37 +00:00
Umherirrender e064b7f1fc Use tabs to indent in json
Change-Id: I20811dc220cd020b1f795cad62d690f142b68643
2017-03-22 22:23:56 +01:00
James D. Forrester 988eea9da4 build: Bump stylelint and make pass
grunt-stylelint              0.6.0  →   0.7.0
 stylelint-config-wikimedia   0.3.0  →   0.4.1

Change-Id: Id87b8df04d415e1f1058a4042a31408236402037
2017-02-17 15:41:15 -08:00
Ed Sanders c8d24ebd17 build: Replace jscs/jshint with eslint
Change-Id: Iee1d1b20ed31e636bfb8fc8cf9b18ff328bf608c
2016-11-23 15:25:59 -08:00
Volker E 6d2e560c1e Introduce stylelint
Introducing stylelint with configuration rules compliant to
Wikimedia CSS Coding Standards 'stylelint-config-wikimedia', nullifying
some for now and making majority pass.

Change-Id: I2c4acee41c9b56d9b00e2a2c5b7ab0ab5de454ce
2016-10-04 18:15:02 -07:00
Moriel Schottlender 2d184c087c Add JSDuck support and fix errors
Change-Id: I7816110862d9ca1b16e2ec9ce842d240bee6b46b
2016-05-11 14:07:12 -07:00
James D. Forrester cc3971006b build: Bump npm devDependencies to latest
grunt-contrib-jshint  0.12.0  →  1.0.0
 grunt-contrib-watch    0.6.1  →  1.0.0
 grunt-banana-checker   0.4.0  →  0.5.0
 grunt-jscs             2.7.0  →  2.8.0

Change-Id: I52d27dd66103a7fe954117524e489fd5916305af
2016-03-24 00:58:54 +00:00
Ricordisamoa 1f24e0589d build: Update grunt-jscs to 2.7.0 and disable failing rules
Change-Id: I81cfe364b72653a99300be2f9a7c289dce899b69
2016-02-29 16:42:32 +01:00
Paladox 7e0a51b37f build: Remove grunt-contrib-csslint
This is no longer needed and useless since we switched all css files to
less.

Change-Id: I6c0ea55c236be94f3b612de2470585616d831dd8
2016-01-18 19:51:04 -08:00
Paladox 5f16851fcd build: Update grunt-contrib-jshint to 0.12.0
Change-Id: I38be12c166512dda8bd0cb7d4d336b7c6684e77d
2016-01-19 03:44:22 +00:00
Kunal Mehta 8c0772c94b build: Updating development dependencies
* grunt-jsonlint: 1.0.6 → 1.0.7

Change-Id: I7ad87b06bd568e1b125fa5ccbe8f0b846f572f25
2015-12-29 11:23:54 -08:00
Paladox eed93d18b9 Update grunt-jsonlint to 1.0.6
Change-Id: I14701a8168e98c3a10a1269324222ebc9772e328
2015-12-09 21:50:29 +00:00
Kunal Mehta f0b5b64328 build: Updating development dependencies
* grunt-banana-checker: 0.2.2 → 0.4.0

Change-Id: I7e0eed45794f9188e8d537c60ac8fa04af6bf1f0
2015-10-11 11:43:43 -04:00
Paladox cb0b254915 Remove jshint from package.json
We use grunt-contrib-jshint for jshint.

Change-Id: I83e96471a3253a635107d351fc8f8f2f3d8c6286
2015-10-05 12:16:47 +00:00
Siebrand Mazeland 33126b69aa Update formatting
In preparation of Code Sniffer based updates.

Change-Id: Id5d43332b44a37665d57dc24ef8c432bc65b2f6a
2015-10-03 23:28:54 -04:00
James D. Forrester 59efdc5184 build: Bump grunt-contrib-jshint from 0.11.2 to 0.11.3 to fix upstream issue
Change-Id: I5e9a3e0665bb894af3a005be46053fbdae4a4baa
2015-09-03 14:20:47 -07:00
Kunal Mehta 2c71920c5c build: Adding configuration for jsonlint
Change-Id: I3c0d0c353a75bcc9da5dd3706d6c5dc6d34570fd
2015-06-11 21:32:18 -07:00