Skip to content

Commit

Permalink
test: Add travis and codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeysova committed Nov 30, 2017
1 parent d8180d9 commit c228b08
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .travis-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: node_js
sudo: off
node_js:
- 8.9.1
- 9.2.0

after_success: npm run coverage
11 changes: 11 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: false # if true: only post the comment if coverage changes
require_base: no # [yes :: must have a base report to post]
require_head: yes # [yes :: must have a head report to post]
branches: null

parsers:
javascript:
enable_partials: yes
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"main": "src/index.js",
"scripts": {
"test": "npm run test:lint && npm run test:code",
"test:code": "ava",
"test:code": "nyc ava",
"test:lint": "eslint .",
"coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
"dev": "cross-env DEBUG=rubot:* nodemon -e yaml,js,json -w locales -w src ./src",
"start": "pm2 startOrRestart ./process.config.js",
"migrate": "sequelize db:migrate",
Expand All @@ -33,6 +34,7 @@
"homepage": "https://github.com/LestaD/ru_bot#readme",
"devDependencies": {
"ava": "^0.24.0",
"codecov": "^3.0.0",
"cross-env": "^5.1.1",
"eslint": "^4.12.0",
"eslint-config-atomix-base": "^5.0.0",
Expand Down

0 comments on commit c228b08

Please sign in to comment.