From 8629fe033693d806c2b195dd4f49599cdb1c8dfd Mon Sep 17 00:00:00 2001 From: Victor Nakoryakov Date: Tue, 28 Jun 2016 16:18:16 +0300 Subject: [PATCH] chore(ci): add travis scaffold --- .travis.yml | 4 ++++ package.json | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..f2808f11 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: node_js +node_js: + - "6" +script: "npm run travis" diff --git a/package.json b/package.json index 819909ec..a08442a8 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "scripts": { "start": "mkdir -p ./dist && cp -f ./app/index.html ./dist/index.html && webpack-dev-server --watch --progress --colors --config webpack.config.js", "lint": "eslint --ext .js --ext .jsx ./app ./test || true", - "test": "mocha-webpack --colors --webpack-config webpack.config.js \"test/**/*Spec.js\"" + "test": "mocha-webpack --colors --webpack-config webpack.config.js \"test/**/*Spec.js\"", + "travis": "npm-run-all --continue-on-error lint test" }, "repository": {}, "keywords": [], @@ -44,6 +45,7 @@ "eslint-plugin-react": "^5.2.2", "mocha": "^2.3.4", "mocha-webpack": "^0.4.0", + "npm-run-all": "^2.3.0", "react-hot-loader": "^1.3.0", "wallaby-webpack": "0.0.22", "webpack-dev-server": "^1.14.0"