Skip to content

Commit 1572b7c

Browse files
Add Travis CI
Continuous integration tool will run tests and linter and ensure code confidence. Also ignore `.travis.yml` in `.npmignore`. https://travis-ci.org
1 parent 572f1f5 commit 1572b7c

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
test
22
.eslint*
3+
.travis*

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: node_js
2+
3+
node_js:
4+
- stable
5+
6+
sudo: false # https://docs.travis-ci.com/user/migrating-from-legacy/
7+
8+
install:
9+
- npm install
10+
11+
script:
12+
- npm run lint
13+
- npm test
14+
15+
cache:
16+
directories:
17+
- node_modules
18+
19+
notifications:
20+
email: false

0 commit comments

Comments
 (0)