From 213cf8841b5675c59a1578f36a3af9dd397d2eae Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 1 Nov 2016 15:46:09 +1300 Subject: [PATCH] =?UTF-8?q?NEW:=20Test=20webpack=20build=20as=20part=20of?= =?UTF-8?q?=20NPM=20test=20run.=20FIX:=20Ensure=20that=20=E2=80=9Cnpm=20ru?= =?UTF-8?q?n=20build=E2=80=9D=20failures=20report=20an=20error=20code.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5d0be1997..7d1f4429f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/package.json b/package.json index d15a12ef2..44648e39a 100644 --- a/package.json +++ b/package.json @@ -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",