Skip to content

Commit 4931388

Browse files
Lint and test with TravisCI
1 parent d2bf643 commit 4931388

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: node_js
2+
node_js:
3+
- 'node'
4+
- '8'
5+
script:
6+
- npm run travisci
7+
cache:
8+
directories:
9+
- node_modules

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"format": "prettier --write 'src/**'",
2323
"lint": "tsc; tslint -p ./",
2424
"precommit": "pretty-quick --staged",
25-
"test": "jest --coverage"
25+
"test": "jest --coverage",
26+
"travisci": "npm run lint && npm run test"
2627
},
2728
"jest": {
2829
"collectCoverageFrom": [

0 commit comments

Comments
 (0)