Skip to content

Commit 3f59813

Browse files
committed
ci: add coveralls upload
1 parent 989a8eb commit 3f59813

File tree

3 files changed

+54
-5
lines changed

3 files changed

+54
-5
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
language: node_js
22
node_js:
3-
- "9"
3+
- "10"
44
cache: yarn
55
script:
6-
- yarn test
6+
- yarn lint
7+
- yarn test --coverage
78
- yarn flow
89
- yarn build:storybook
10+
after_success:
11+
- yarn coveralls
912
deploy:
1013
local_dir: example
1114
provider: pages

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"inview"
1919
],
2020
"scripts": {
21+
"coveralls": "cat ./coverage/lcov.info | coveralls",
2122
"build": "rm -rf lib es && npm run build:lib && npm run build:flow",
2223
"build:lib": "babel src --out-dir lib --ignore __*,*.story.js,*.test.js",
2324
"build:storybook": "build-storybook --output-dir example",
@@ -29,7 +30,7 @@
2930
"prepare": "npm run build",
3031
"pretty": "prettier '**/*.{js,md,json}' --write",
3132
"storybook": "start-storybook -p 9000",
32-
"test": "eslint {src,stories,tests}/. && jest"
33+
"test": "jest"
3334
},
3435
"lint-staged": {
3536
"*.{js,json,css,md,ts}": [
@@ -79,6 +80,7 @@
7980
"babel-preset-stage-2": "^6.24.1",
8081
"babel-runtime": "^6.25.0",
8182
"concurrently": "3.5.1",
83+
"coveralls": "^3.0.1",
8284
"enzyme": "^3.3.0",
8385
"enzyme-adapter-react-16": "^1.0.4",
8486
"enzyme-to-json": "^3.3.3",

yarn.lock

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,6 +2356,16 @@ cosmiconfig@^4.0.0:
23562356
parse-json "^4.0.0"
23572357
require-from-string "^2.0.1"
23582358

2359+
coveralls@^3.0.1:
2360+
version "3.0.1"
2361+
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.1.tgz#12e15914eaa29204e56869a5ece7b9e1492d2ae2"
2362+
dependencies:
2363+
js-yaml "^3.6.1"
2364+
lcov-parse "^0.0.10"
2365+
log-driver "^1.2.5"
2366+
minimist "^1.2.0"
2367+
request "^2.79.0"
2368+
23592369
create-ecdh@^4.0.0:
23602370
version "4.0.3"
23612371
resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.3.tgz#c9111b6f33045c4697f144787f9254cdc77c45ff"
@@ -4951,7 +4961,7 @@ js-tokens@^3.0.0, js-tokens@^3.0.2:
49514961
version "3.0.2"
49524962
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
49534963

4954-
js-yaml@^3.4.3, js-yaml@^3.7.0, js-yaml@^3.9.0, js-yaml@^3.9.1:
4964+
js-yaml@^3.4.3, js-yaml@^3.6.1, js-yaml@^3.7.0, js-yaml@^3.9.0, js-yaml@^3.9.1:
49554965
version "3.11.0"
49564966
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.11.0.tgz#597c1a8bd57152f26d622ce4117851a51f5ebaef"
49574967
dependencies:
@@ -5115,6 +5125,10 @@ lcid@^1.0.0:
51155125
dependencies:
51165126
invert-kv "^1.0.0"
51175127

5128+
lcov-parse@^0.0.10:
5129+
version "0.0.10"
5130+
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"
5131+
51185132
left-pad@^1.2.0:
51195133
version "1.3.0"
51205134
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e"
@@ -5321,6 +5335,10 @@ lodash@^4.13.1, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.17.0, lodash@^4.17.3,
53215335
version "4.17.10"
53225336
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"
53235337

5338+
log-driver@^1.2.5:
5339+
version "1.2.7"
5340+
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8"
5341+
53245342
log-symbols@^1.0.2:
53255343
version "1.0.2"
53265344
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
@@ -7141,7 +7159,33 @@ request-promise-native@^1.0.5:
71417159
stealthy-require "^1.1.0"
71427160
tough-cookie ">=2.3.3"
71437161

7144-
request@^2.83.0, request@~2.85.0:
7162+
request@^2.79.0, request@~2.86.0:
7163+
version "2.86.0"
7164+
resolved "https://registry.yarnpkg.com/request/-/request-2.86.0.tgz#2b9497f449b0a32654c081a5cf426bbfb5bf5b69"
7165+
dependencies:
7166+
aws-sign2 "~0.7.0"
7167+
aws4 "^1.6.0"
7168+
caseless "~0.12.0"
7169+
combined-stream "~1.0.5"
7170+
extend "~3.0.1"
7171+
forever-agent "~0.6.1"
7172+
form-data "~2.3.1"
7173+
har-validator "~5.0.3"
7174+
hawk "~6.0.2"
7175+
http-signature "~1.2.0"
7176+
is-typedarray "~1.0.0"
7177+
isstream "~0.1.2"
7178+
json-stringify-safe "~5.0.1"
7179+
mime-types "~2.1.17"
7180+
oauth-sign "~0.8.2"
7181+
performance-now "^2.1.0"
7182+
qs "~6.5.1"
7183+
safe-buffer "^5.1.1"
7184+
tough-cookie "~2.3.3"
7185+
tunnel-agent "^0.6.0"
7186+
uuid "^3.1.0"
7187+
7188+
request@^2.83.0:
71457189
version "2.85.0"
71467190
resolved "https://registry.yarnpkg.com/request/-/request-2.85.0.tgz#5a03615a47c61420b3eb99b7dba204f83603e1fa"
71477191
dependencies:

0 commit comments

Comments
 (0)