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

Commit

Permalink
Merge pull request #10 from NateRadebaugh/coveralls
Browse files Browse the repository at this point in the history
Enable coveralls reports for code.
  • Loading branch information
NateRadebaugh authored Sep 10, 2018
2 parents 578da29 + 6c45bae commit 1d4a520
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ node_modules
build
dist

# test coverage
coverage

# misc
.DS_Store
.env
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ notifications:
before_install: yarn global add greenkeeper-lockfile@1
before_script: greenkeeper-lockfile-update
after_script: greenkeeper-lockfile-upload
after_success:
- yarn report-coverage
env:
global:
secure: SSs3jgNRFsfKMgbdzxUVJ0iJW2H7kJbEapo2vBbXIuMepsVh0PdGyxFk6Fuq1qKjpH2rkMnxGgC87oX4oMfS3cQsjaRTmsFRHbT/lWObim7C7NnwF3Kiu94OJd3E3mbA+LppA+3Gl8lQpDnaXFQc4OJl/s20EfMjycb6TtiWdXEaBXC7ERtSP9udmJhzo8LeFRUAPDglNhd2xwStJiheniRb3w6HV7Zsvu2Fwjio/uXttG7oea1VRjfZ7EaPXrCygVgaa12FiH1XYVeKgDurM4BHAIk83GKNPGqrlEIi8QnfwpZ2zaG9gW5KMtutzZwZ1QWfNJevN5QE6OU3hQPODrQyjeFNiWDJSwOtDvx0tn/A7eFRRs8klchuDKpFASqUIsS7Y/BVE07yIVCqExWYFG1Ur0yHouBuarmPef8nQ/+sk1NW6EZND++5ta35DfA//6+jnbEZCh/4DYUtfc1AczIOm2VIxQHye+cXqwEMr3uC/l1ONCV2j5/14MwNfv73v2MCPPPw3MvgIVADHv8dBqZT34GJwHjH3ASD98Gl/YM9D2k4gL1j1Uxq4jwMB6XJVWKwtxRqNMjsskuEHILlc/ECJi6BPo1c2AHjVCgmh77fvnskmTX+u18wfmCWmREjBX/Mc85SxX4c/AQMQXlUwf6Q0mLdYN7b2+lqFdcp+y0=
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# react-datetime

[![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/)
[![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)

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.

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
"lint": "eslint **/*.{js,jsx}",
"lint:fix": "eslint **/*.{js,jsx} --fix",
"test": "cross-env CI=1 TZ=Europe/Stockholm react-scripts test --env=jsdom",
"test:all": "echo 'Running tests...' && npm run test && echo 'All tests passed! 🤘'",
"test:coverage": "cross-env CI=1 TZ=Europe/Stockholm react-scripts test --env=jsdom --coverage",
"test:all": "echo 'Running tests...' && npm run test:coverage && echo 'All tests passed! 🤘'",
"test:watch": "cross-env TZ=Europe/Stockholm react-scripts test --env=jsdom",
"report-coverage": "cat ./coverage/lcov.info | coveralls",
"prettier": "prettier --write **/*.{json,js,jsx,css}",
"precommit": "lint-staged",
"prepare": "yarn run build",
Expand Down Expand Up @@ -81,6 +83,7 @@
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^9.0.0",
"coveralls": "^3.0.2",
"cross-env": "^5.1.4",
"enzyme": "^3.6.0",
"enzyme-adapter-react-16": "^1.5.0",
Expand Down
33 changes: 31 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,14 @@
"@babel/helper-hoist-variables@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0.tgz#46adc4c5e758645ae7a45deb92bab0918c23bb88"
dependencies:
"@babel/types" "^7.0.0"

"@babel/helper-member-expression-to-functions@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0.tgz#8cd14b0a0df7ff00f009e7d7a436945f47c7a16f"
dependencies:
"@babel/types" "^7.0.0"

"@babel/helper-module-imports@^7.0.0":
version "7.0.0"
Expand Down Expand Up @@ -628,6 +632,8 @@
"@babel/plugin-transform-shorthand-properties@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0.tgz#85f8af592dcc07647541a0350e8c95c7bf419d15"
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"

"@babel/plugin-transform-spread@^7.0.0":
version "7.0.0"
Expand Down Expand Up @@ -2515,6 +2521,17 @@ cosmiconfig@^5.0.2:
js-yaml "^3.9.0"
parse-json "^4.0.0"

coveralls@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.2.tgz#f5a0bcd90ca4e64e088b710fa8dda640aea4884f"
dependencies:
growl "~> 1.10.0"
js-yaml "^3.11.0"
lcov-parse "^0.0.10"
log-driver "^1.2.7"
minimist "^1.2.0"
request "^2.85.0"

create-ecdh@^4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.3.tgz#c9111b6f33045c4697f144787f9254cdc77c45ff"
Expand Down Expand Up @@ -4189,6 +4206,10 @@ [email protected], graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6,
version "4.1.11"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"

"growl@~> 1.10.0":
version "1.10.5"
resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e"

growly@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081"
Expand Down Expand Up @@ -5271,7 +5292,7 @@ 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.12.0, js-yaml@^3.4.3, js-yaml@^3.7.0, js-yaml@^3.9.0, js-yaml@^3.9.1:
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:
version "3.12.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1"
dependencies:
Expand Down Expand Up @@ -5454,6 +5475,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 @@ -5643,6 +5668,10 @@ lodash.uniq@^4.5.0:
version "4.17.10"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"

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

log-symbols@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
Expand Down Expand Up @@ -7447,7 +7476,7 @@ repeating@^2.0.0:
dependencies:
is-finite "^1.0.0"

request@^2.79.0:
request@^2.79.0, request@^2.85.0:
version "2.88.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef"
dependencies:
Expand Down

0 comments on commit 1d4a520

Please sign in to comment.