run npm run test in travis

This commit is contained in:
DIYgod
2018-11-01 23:43:54 +08:00
parent bb74a5fdd4
commit feb6f8471a
2 changed files with 3 additions and 3 deletions
+1 -2
View File
@@ -7,8 +7,7 @@ install:
- yarn
script:
- npm run lint
- npm run start
- npm run test
cache:
yarn: true
+2 -1
View File
@@ -9,7 +9,8 @@
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs",
"format": "eslint \"**/*.js\" --fix && prettier \"**/*.{js,json,md}\" --write",
"lint": "eslint \"**/*.js\" && prettier-check \"**/*.{js,json,md}\""
"lint": "eslint \"**/*.js\" && prettier-check \"**/*.{js,json,md}\"",
"test": "npm run lint && timeout 5 node index.js"
},
"repository": {
"type": "git",