add[chore]:add travis

This commit is contained in:
Pan 2017-12-11 13:59:49 +08:00
parent e7f626f015
commit 3aacd3cccd
2 changed files with 5 additions and 1 deletions

3
.travis.yml Executable file
View file

@ -0,0 +1,3 @@
language: node_js
node_js: stable
script: npm run test

View file

@ -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",