Skip to content

Commit 31ae9b9

Browse files
author
Kaspars Dambis
authored
Tooling update and WPCS cleanup (#1016)
1 parent 6a64d8f commit 31ae9b9

File tree

84 files changed

+8817
-3713
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+8817
-3713
lines changed

.codeclimate.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.coveralls.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage_clover: tests/reports/clover.xml
2+
json_path: tests/reports/coveralls-upload.json
3+
service_name: travis-ci

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/ui/lib/
2+
**/*.min.js
3+
/vendor/
4+
/node_modules/
5+
/build/

.eslintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"env": {
3+
"browser": true
4+
},
5+
"extends": [
6+
"plugin:@wordpress/eslint-plugin/es5"
7+
],
8+
"rules": {
9+
"camelcase": "off",
10+
"no-alert": "off",
11+
"vars-on-top": "warn"
12+
}
13+
}

.gitignore

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
.DS_Store
33
/node_modules/
44
/vendor/
5-
npm-debug.log
6-
package.lock
7-
8-
# Grunt
95
/build/
10-
/node_modules/
6+
/.vagrant/
7+
/console.log
8+
/phpcs.xml
119
npm-debug.log
10+
package.lock
1211

1312
# Compiled files
1413
ui/js/*.min.js

.jscsrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

.jshintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.jshintrc

Lines changed: 0 additions & 24 deletions
This file was deleted.

.mailmap

Lines changed: 0 additions & 4 deletions
This file was deleted.

.travis.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
dist: xenial
2+
13
language:
24
- php
35
- node_js
46

57
php:
6-
- 5.6
7-
- 7.0
8-
- 7.2
9-
- 7.3
8+
- "5.6"
9+
- "7.0"
10+
- "7.2"
11+
- "7.3"
1012

1113
addons:
1214
apt:
@@ -19,13 +21,18 @@ env:
1921
- WP_VERSION=trunk WP_MULTISITE=0
2022
- WP_VERSION=trunk WP_MULTISITE=1
2123

24+
services:
25+
- mysql
26+
2227
install:
2328
- npm install
24-
- export DEV_LIB_PATH=node_modules/wp-dev-lib/scripts
25-
- source $DEV_LIB_PATH/travis.install.sh
29+
- export DEV_LIB_PATH="vendor/xwp/wp-dev-lib/scripts"
30+
- export DEV_LIB_ONLY="phpunit"
31+
- source "$DEV_LIB_PATH/travis.install.sh"
2632

2733
script:
28-
- source $DEV_LIB_PATH/travis.script.sh
34+
- npm run lint
35+
- source "$DEV_LIB_PATH/travis.script.sh"
2936

3037
after_script:
3138
- source $DEV_LIB_PATH/travis.after_script.sh

0 commit comments

Comments
 (0)