mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
5650254b53
commit
213cf8841b
@ -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"
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user