From 22d38ea27df56ba0eb0aef93b4422c2a85ed7aed Mon Sep 17 00:00:00 2001 From: BE-Webdesign Date: Mon, 24 Apr 2017 13:50:11 -0400 Subject: [PATCH 1/3] Add build step to CI Fixes #481. Adds the build step to Travis CI. Since we are using webpack v2, the build will exit with a non zero error code, if any build failures occur. --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 2197832ecf97c8..19b3937b2fbbb5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,5 @@ language: node_js node_js: - "node" +before_script: + - "npm run build" From 0bd266525a79fc43b10a9c5d3dccf41490ee2f98 Mon Sep 17 00:00:00 2001 From: BE-Webdesign Date: Mon, 24 Apr 2017 15:55:58 -0400 Subject: [PATCH 2/3] Making builds concurrent. --- .travis.yml | 2 +- package.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 19b3937b2fbbb5..41c4b894f01ee5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,4 +2,4 @@ language: node_js node_js: - "node" before_script: - - "npm run build" + - "npm run travis-builds" diff --git a/package.json b/package.json index 1cbc592e0ebf84..621ab675c73e04 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "build": "cross-env BABEL_ENV=default NODE_ENV=production webpack", "lint": "eslint .", "dev": "cross-env BABEL_ENV=default webpack --watch", - "test": "npm run lint && npm run test-unit" + "test": "npm run lint && npm run test-unit", + "travis-builds": "concurrently \"npm run build\" \"cross-env BABEL_ENV=default webpack\" \"cross-env BABEL_ENV=default NODE_ENV=test webpack\"" }, "devDependencies": { "autoprefixer": "^6.7.7", @@ -28,6 +29,7 @@ "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-latest": "^6.24.0", "chai": "^3.5.0", + "concurrently": "^3.4.0", "cross-env": "^3.2.4", "deep-freeze": "0.0.1", "dirty-chai": "^1.2.2", From afee735b37f6fc8c572560d620acf95ca944adb5 Mon Sep 17 00:00:00 2001 From: BE-Webdesign Date: Mon, 24 Apr 2017 16:15:36 -0400 Subject: [PATCH 3/3] Condensing build process. --- .travis.yml | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 41c4b894f01ee5..a9652ccc33e4ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: node_js node_js: - "node" -before_script: - - "npm run travis-builds" +script: + - "npm run ci" diff --git a/package.json b/package.json index 621ab675c73e04..a90facfc9c60c0 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "lint": "eslint .", "dev": "cross-env BABEL_ENV=default webpack --watch", "test": "npm run lint && npm run test-unit", - "travis-builds": "concurrently \"npm run build\" \"cross-env BABEL_ENV=default webpack\" \"cross-env BABEL_ENV=default NODE_ENV=test webpack\"" + "ci": "concurrently \"npm run build\" \"npm test\"" }, "devDependencies": { "autoprefixer": "^6.7.7",