Lint and test addons on CI (#9936)

* Lint addons

* Run prettier on addons

* Fix all lint issues

* Remove unused variable

* Test addons on CI
This commit is contained in:
Dan Abramov
2017-06-12 21:26:56 +01:00
committed by GitHub
parent 61e8ee71b6
commit beb370c102
22 changed files with 442 additions and 239 deletions
+1
View File
@@ -28,6 +28,7 @@ if [ $((0 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
COMMANDS_TO_RUN+=('./node_modules/.bin/grunt build')
COMMANDS_TO_RUN+=('./scripts/circleci/test_extract_errors.sh')
COMMANDS_TO_RUN+=('./scripts/circleci/track_stats.sh')
COMMANDS_TO_RUN+=('node ./addons/test')
fi
RETURN_CODES=()
+6
View File
@@ -34,6 +34,12 @@ const config = {
'**/node_modules/**',
],
},
addons: {
patterns: ['addons/**/*.js'],
ignore: [
'**/node_modules/**',
],
},
};
function exec(command, args) {