run `npm run test` in travis

This commit is contained in:
DIYgod 2018-11-01 23:43:54 +08:00
parent bb74a5fdd4
commit feb6f8471a
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
2 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,7 @@ install:
- yarn
script:
- npm run lint
- npm run start
- npm run test
cache:
yarn: true

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