From 1fab5c640bc8c455d890b71a152a9454b07dce61 Mon Sep 17 00:00:00 2001 From: Viktor Luft Date: Thu, 16 Nov 2017 21:57:22 +0100 Subject: [PATCH] Coveralls applied --- .travis.yml | 7 ++++++- package.json | 4 +++- yarn.lock | 20 +++++++++++++++++++- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6998e32..734ad2d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,8 @@ language: node_js node_js: - - "stable" \ No newline at end of file + - "stable" +sudo: false +script: + - "npm test" +after_success: + - 'npm run coveralls' \ No newline at end of file diff --git a/package.json b/package.json index 0563a59..4595098 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "flow": "flow", "test": "npm run flow && npm run eslint && npm run test-coverage", "test-coverage": "jest --all --coverage", - "prettier": "prettier --config .prettierrc --write src/**/*.js test/**/*.js" + "prettier": "prettier --config .prettierrc --write src/**/*.js test/**/*.js", + "coveralls": "cat ./coverage/lcov.info | coveralls" }, "repository": { "type": "git", @@ -54,6 +55,7 @@ "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-es2015": "^6.24.1", "babel-preset-flow": "^6.23.0", + "coveralls": "^3.0.0", "eslint": "^4.10.0", "eslint-config-prettier": "^2.6.0", "eslint-plugin-flowtype": "^2.39.1", diff --git a/yarn.lock b/yarn.lock index 5f1dad3..5abc716 100644 --- a/yarn.lock +++ b/yarn.lock @@ -980,6 +980,16 @@ core-util-is@1.0.2, 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" + cross-spawn@^5.0.1, cross-spawn@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" @@ -2162,7 +2172,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.7.0, js-yaml@^3.9.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: @@ -2266,6 +2276,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" @@ -2311,6 +2325,10 @@ lodash@^4.14.0, lodash@^4.15.0, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.3.0: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" +log-driver@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.5.tgz#7ae4ec257302fd790d557cb10c97100d857b0056" + longest@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097"