chore: change travis script
run lint and test
This commit is contained in:
@@ -16,6 +16,8 @@ notifications:
|
|||||||
|
|
||||||
after_success: npm run coverage
|
after_success: npm run coverage
|
||||||
|
|
||||||
|
script: npm run test:ci
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
"prepublish": "in-publish && npm run test || not-in-publish",
|
"prepublish": "in-publish && npm run test || not-in-publish",
|
||||||
"test": "retire -n -p package.json && npm run build && npm run unit",
|
"test": "retire -n -p package.json && npm run build && npm run unit",
|
||||||
"lint": "eslint \"*.js\" \"src/**/*.js\"",
|
"lint": "eslint \"*.js\" \"src/**/*.js\"",
|
||||||
|
"test:ci": "npm run lint && npm run test",
|
||||||
"unit": "nyc --require babel-core/register mocha test/src/**"
|
"unit": "nyc --require babel-core/register mocha test/src/**"
|
||||||
},
|
},
|
||||||
"author": "Joe Fleming (https://github.com/w33ble)",
|
"author": "Joe Fleming (https://github.com/w33ble)",
|
||||||
|
|||||||
Reference in New Issue
Block a user