Skip to content

Commit

Permalink
chore: configure travis
Browse files Browse the repository at this point in the history
  • Loading branch information
lekterable committed Apr 18, 2020
1 parent 534a288 commit d186a31
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
coverage
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: node_js
node_js: 13
cache:
directories: node_modules
script: npm run test:coverage
after_success: npm run codecov
112 changes: 112 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "Check if a string could be a regular expression",
"main": "index.js",
"scripts": {
"test": "jest"
"test": "jest",
"test:coverage": "jest --collectCoverage",
"codecov": "codecov"
},
"repository": {
"type": "git",
Expand All @@ -29,6 +31,7 @@
"is-regex": "^1.0.5"
},
"devDependencies": {
"codecov": "^3.6.5",
"jest": "^25.3.0"
}
}

0 comments on commit d186a31

Please sign in to comment.