Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 1d4a520

Browse files
Merge pull request #10 from NateRadebaugh/coveralls
Enable coveralls reports for code.
2 parents 578da29 + 6c45bae commit 1d4a520

File tree

5 files changed

+41
-5
lines changed

5 files changed

+41
-5
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ node_modules
88
build
99
dist
1010

11+
# test coverage
12+
coverage
13+
1114
# misc
1215
.DS_Store
1316
.env

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ notifications:
1616
before_install: yarn global add greenkeeper-lockfile@1
1717
before_script: greenkeeper-lockfile-update
1818
after_script: greenkeeper-lockfile-upload
19+
after_success:
20+
- yarn report-coverage
1921
env:
2022
global:
2123
secure: SSs3jgNRFsfKMgbdzxUVJ0iJW2H7kJbEapo2vBbXIuMepsVh0PdGyxFk6Fuq1qKjpH2rkMnxGgC87oX4oMfS3cQsjaRTmsFRHbT/lWObim7C7NnwF3Kiu94OJd3E3mbA+LppA+3Gl8lQpDnaXFQc4OJl/s20EfMjycb6TtiWdXEaBXC7ERtSP9udmJhzo8LeFRUAPDglNhd2xwStJiheniRb3w6HV7Zsvu2Fwjio/uXttG7oea1VRjfZ7EaPXrCygVgaa12FiH1XYVeKgDurM4BHAIk83GKNPGqrlEIi8QnfwpZ2zaG9gW5KMtutzZwZ1QWfNJevN5QE6OU3hQPODrQyjeFNiWDJSwOtDvx0tn/A7eFRRs8klchuDKpFASqUIsS7Y/BVE07yIVCqExWYFG1Ur0yHouBuarmPef8nQ/+sk1NW6EZND++5ta35DfA//6+jnbEZCh/4DYUtfc1AczIOm2VIxQHye+cXqwEMr3uC/l1ONCV2j5/14MwNfv73v2MCPPPw3MvgIVADHv8dBqZT34GJwHjH3ASD98Gl/YM9D2k4gL1j1Uxq4jwMB6XJVWKwtxRqNMjsskuEHILlc/ECJi6BPo1c2AHjVCgmh77fvnskmTX+u18wfmCWmREjBX/Mc85SxX4c/AQMQXlUwf6Q0mLdYN7b2+lqFdcp+y0=

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# react-datetime
22

3-
[![Build Status](https://secure.travis-ci.org/NateRadebaugh/react-datetime.svg)](https://travis-ci.org/NateRadebaugh/react-datetime)
4-
[![npm version](https://badge.fury.io/js/%40nateradebaugh%2Freact-datetime.svg)](https://badge.fury.io/js/%40nateradebaugh%2Freact-datetime) [![Greenkeeper badge](https://badges.greenkeeper.io/NateRadebaugh/react-datetime.svg)](https://greenkeeper.io/)
3+
[![Build Status](https://secure.travis-ci.org/NateRadebaugh/react-datetime.svg)](https://travis-ci.org/NateRadebaugh/react-datetime) [![npm version](https://badge.fury.io/js/%40nateradebaugh%2Freact-datetime.svg)](https://badge.fury.io/js/%40nateradebaugh%2Freact-datetime) [![Greenkeeper badge](https://badges.greenkeeper.io/NateRadebaugh/react-datetime.svg)](https://greenkeeper.io/) [![Coverage Status](https://coveralls.io/repos/github/NateRadebaugh/react-datetime/badge.svg?branch=master)](https://coveralls.io/github/NateRadebaugh/react-datetime?branch=master)
54

65
A date and time picker in the same React.js component. It can be used as a datepicker, timepicker or both at the same time. It is **highly customizable** and it even allows to edit date's milliseconds.
76

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222
"lint": "eslint **/*.{js,jsx}",
2323
"lint:fix": "eslint **/*.{js,jsx} --fix",
2424
"test": "cross-env CI=1 TZ=Europe/Stockholm react-scripts test --env=jsdom",
25-
"test:all": "echo 'Running tests...' && npm run test && echo 'All tests passed! 🤘'",
25+
"test:coverage": "cross-env CI=1 TZ=Europe/Stockholm react-scripts test --env=jsdom --coverage",
26+
"test:all": "echo 'Running tests...' && npm run test:coverage && echo 'All tests passed! 🤘'",
2627
"test:watch": "cross-env TZ=Europe/Stockholm react-scripts test --env=jsdom",
28+
"report-coverage": "cat ./coverage/lcov.info | coveralls",
2729
"prettier": "prettier --write **/*.{json,js,jsx,css}",
2830
"precommit": "lint-staged",
2931
"prepare": "yarn run build",
@@ -81,6 +83,7 @@
8183
"@babel/preset-env": "^7.0.0",
8284
"@babel/preset-react": "^7.0.0",
8385
"babel-eslint": "^9.0.0",
86+
"coveralls": "^3.0.2",
8487
"cross-env": "^5.1.4",
8588
"enzyme": "^3.6.0",
8689
"enzyme-adapter-react-16": "^1.5.0",

yarn.lock

+31-2
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,14 @@
9797
"@babel/helper-hoist-variables@^7.0.0":
9898
version "7.0.0"
9999
resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0.tgz#46adc4c5e758645ae7a45deb92bab0918c23bb88"
100+
dependencies:
101+
"@babel/types" "^7.0.0"
100102

101103
"@babel/helper-member-expression-to-functions@^7.0.0":
102104
version "7.0.0"
103105
resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0.tgz#8cd14b0a0df7ff00f009e7d7a436945f47c7a16f"
106+
dependencies:
107+
"@babel/types" "^7.0.0"
104108

105109
"@babel/helper-module-imports@^7.0.0":
106110
version "7.0.0"
@@ -628,6 +632,8 @@
628632
"@babel/plugin-transform-shorthand-properties@^7.0.0":
629633
version "7.0.0"
630634
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0.tgz#85f8af592dcc07647541a0350e8c95c7bf419d15"
635+
dependencies:
636+
"@babel/helper-plugin-utils" "^7.0.0"
631637

632638
"@babel/plugin-transform-spread@^7.0.0":
633639
version "7.0.0"
@@ -2515,6 +2521,17 @@ cosmiconfig@^5.0.2:
25152521
js-yaml "^3.9.0"
25162522
parse-json "^4.0.0"
25172523

2524+
coveralls@^3.0.2:
2525+
version "3.0.2"
2526+
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.2.tgz#f5a0bcd90ca4e64e088b710fa8dda640aea4884f"
2527+
dependencies:
2528+
growl "~> 1.10.0"
2529+
js-yaml "^3.11.0"
2530+
lcov-parse "^0.0.10"
2531+
log-driver "^1.2.7"
2532+
minimist "^1.2.0"
2533+
request "^2.85.0"
2534+
25182535
create-ecdh@^4.0.0:
25192536
version "4.0.3"
25202537
resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.3.tgz#c9111b6f33045c4697f144787f9254cdc77c45ff"
@@ -4189,6 +4206,10 @@ [email protected], graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6,
41894206
version "4.1.11"
41904207
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
41914208

4209+
"growl@~> 1.10.0":
4210+
version "1.10.5"
4211+
resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e"
4212+
41924213
growly@^1.3.0:
41934214
version "1.3.0"
41944215
resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081"
@@ -5271,7 +5292,7 @@ js-tokens@^3.0.2:
52715292
version "3.0.2"
52725293
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
52735294

5274-
js-yaml@^3.12.0, js-yaml@^3.4.3, js-yaml@^3.7.0, js-yaml@^3.9.0, js-yaml@^3.9.1:
5295+
js-yaml@^3.11.0, js-yaml@^3.12.0, js-yaml@^3.4.3, js-yaml@^3.7.0, js-yaml@^3.9.0, js-yaml@^3.9.1:
52755296
version "3.12.0"
52765297
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1"
52775298
dependencies:
@@ -5454,6 +5475,10 @@ lcid@^1.0.0:
54545475
dependencies:
54555476
invert-kv "^1.0.0"
54565477

5478+
lcov-parse@^0.0.10:
5479+
version "0.0.10"
5480+
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"
5481+
54575482
leven@^2.1.0:
54585483
version "2.1.0"
54595484
resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580"
@@ -5643,6 +5668,10 @@ lodash.uniq@^4.5.0:
56435668
version "4.17.10"
56445669
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"
56455670

5671+
log-driver@^1.2.7:
5672+
version "1.2.7"
5673+
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8"
5674+
56465675
log-symbols@^1.0.2:
56475676
version "1.0.2"
56485677
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
@@ -7447,7 +7476,7 @@ repeating@^2.0.0:
74477476
dependencies:
74487477
is-finite "^1.0.0"
74497478

7450-
request@^2.79.0:
7479+
request@^2.79.0, request@^2.85.0:
74517480
version "2.88.0"
74527481
resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef"
74537482
dependencies:

0 commit comments

Comments
 (0)