From 5639a2a2cbbf73163b7b0ff4b42669ca67b74b41 Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 11 Dec 2017 13:43:09 +0800 Subject: [PATCH] add[chore]:add travis --- .travis.yml | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d5a327d --- /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 050ec69..f2a09e5 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "dev": "node build/dev-server.js", "start": "node build/dev-server.js", "build": "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",