Skip to content

Commit

Permalink
ci(Coverage): Add coveralls to travis (#6)
Browse files Browse the repository at this point in the history
* ci(Coverage): Add coveralls to travis

* ci(Config): Make coveralls run on ci

* ci(Failure): failing even more and more

* docs(Readme): Add coverage %
  • Loading branch information
beardedtim authored Feb 23, 2018
1 parent 6bcb40a commit 205b4f8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ notifications:
node_js:
- '8'
scripts:
- yarn test
- yarn coverage
after_success:
- yarn coverage
- yarn semantic-release
branches:
except:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

[![Build Status](https://travis-ci.org/beardedtim/bambi.svg?branch=master)](https://travis-ci.org/beardedtim/bambi)

[![Coverage Status](https://coveralls.io/repos/github/beardedtim/bambi/badge.svg?branch=master)](https://coveralls.io/github/beardedtim/bambi?branch=master)

## API

* [always](#always)
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,25 @@
"license": "MIT",
"devDependencies": {
"babel-core": "^6.26.0",
"babel-jest": "^21.0.2",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.0",
"commitizen": "^2.9.6",
"coveralls": "^3.0.0",
"cz-conventional-changelog": "^2.0.0",
"env": "^0.0.2",
"jest": "^21.1.0",
"prettier-standard": "^6.0.0",
"semantic-release": "^8.0.0",
"semantic-release-cli": "^3.0.3",
"standard": "^10.0.3",
"babel-jest": "^21.0.2",
"jest": "^21.1.0"
"standard": "^10.0.3"
},
"scripts": {
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"commit": "git-cz",
"test": "jest",
"test:w": "jest --watch",
"coverage": "jest --coverage"
"coverage": "jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},
"repository": {
"type": "git",
Expand All @@ -48,4 +49,4 @@
"./.babelrc.js"
]
}
}
}
20 changes: 19 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,16 @@ [email protected], core-util-is@^1.0.1, core-util-is@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"

coveralls@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.0.tgz#22ef730330538080d29b8c151dc9146afde88a99"
dependencies:
js-yaml "^3.6.1"
lcov-parse "^0.0.10"
log-driver "^1.2.5"
minimist "^1.2.0"
request "^2.79.0"

create-error-class@^3.0.0:
version "3.0.2"
resolved "http://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz#06be7abef947a3f14a30fd610671d401bca8b7b6"
Expand Down Expand Up @@ -3527,7 +3537,7 @@ js-tokens@^3.0.0, js-tokens@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"

js-yaml@^3.3.1, js-yaml@^3.5.1, js-yaml@^3.7.0, js-yaml@^3.9.1:
js-yaml@^3.3.1, js-yaml@^3.5.1, js-yaml@^3.6.1, js-yaml@^3.7.0, js-yaml@^3.9.1:
version "3.10.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc"
dependencies:
Expand Down Expand Up @@ -3691,6 +3701,10 @@ lcid@^1.0.0:
dependencies:
invert-kv "^1.0.0"

lcov-parse@^0.0.10:
version "0.0.10"
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"

leven@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580"
Expand Down Expand Up @@ -3893,6 +3907,10 @@ lodash@~1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-1.3.1.tgz#a4663b53686b895ff074e2ba504dfb76a8e2b770"

log-driver@^1.2.5:
version "1.2.7"
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8"

loglevel-colored-level-prefix@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/loglevel-colored-level-prefix/-/loglevel-colored-level-prefix-1.0.0.tgz#6a40218fdc7ae15fc76c3d0f3e676c465388603e"
Expand Down

0 comments on commit 205b4f8

Please sign in to comment.