NEW: Test webpack build as part of NPM test run.

FIX: Ensure that “npm run build” failures report an error code.
This commit is contained in:
Sam Minnee 2016-11-01 15:46:09 +13:00
parent 5650254b53
commit 213cf8841b
2 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,7 @@ script:
- "if [ \"$BEHAT_TEST\" = \"1\" ] && [ \"$CMS_TEST\" = \"1\" ]; then vendor/bin/behat @cms --config cms/tests/behat/behat.yml; fi"
- "if [ \"$NPM_TEST\" = \"1\" ]; then npm run test; fi"
- "if [ \"$NPM_TEST\" = \"1\" ]; then npm run lint; fi"
- "if [ \"$NPM_TEST\" = \"1\" ]; then npm run build; fi"
- "if [ \"$PHPUNIT_COVERAGE_TEST\" = \"1\" ] && [ \"$CMS_TEST\" = \"\" ]; then phpdbg -qrr ./vendor/bin/phpunit --coverage-clover=coverage.xml; fi"
- "if [ \"$PHPUNIT_COVERAGE_TEST\" = \"1\" ] && [ \"$CMS_TEST\" = \"\" ]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi"

View File

@ -10,7 +10,7 @@
"node": "^4.2.0"
},
"scripts": {
"build": "webpack",
"build": "webpack --bail",
"watch": "webpack --config ./webpack-dev.config.js --watch",
"css": "WEBPACK_CHILD=css webpack",
"lock": "npm-shrinkwrap --dev",