diff --git a/.travis.yml b/.travis.yml new file mode 100755 index 00000000..d5a327d9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: stable +script: npm run test diff --git a/package.json b/package.json index 670f8f7c..4255c435 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "build:prod": "cross-env NODE_ENV=production env_config=prod node build/build.js", "build:sit": "cross-env NODE_ENV=production env_config=sit node build/build.js", "build:sit-preview": "cross-env NODE_ENV=production env_config=sit npm_config_preview=true npm_config_report=true node build/build.js", - "lint": "eslint --ext .js,.vue src" + "lint": "eslint --ext .js,.vue src", + "test": "npm run lint" }, "dependencies": { "axios": "0.17.1",