Skip to content

Commit

Permalink
Trying out codecov (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
icambron committed Mar 12, 2018
1 parent 4952360 commit 9ebc3f8
Show file tree
Hide file tree
Showing 5 changed files with 185 additions and 14 deletions.
17 changes: 8 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ services:
- docker
before_install:
- docker pull icambron/luxon
- ./docker/npm-ci install
- ./docker/npm install
script:
- ./docker/npm-ci run build
- ./docker/npm-ci run lint
- ./docker/npm-ci run test
- ./docker/npm-ci run docs
- ./docker/npm-ci run check-doc-coverage
branches:
only:
- master
- ./docker/npm run build
- ./docker/npm run lint
- ./docker/npm run test
- ./docker/npm run docs
- ./docker/npm run check-doc-coverage
- bash <(curl -s https://codecov.io/bash)

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Luxon is a library for working with dates and times in Javascript.
```js
DateTime.local().setZone('America/New_York').minus({ weeks: 1 }).endOf('day').toISO();
```

## Features
* DateTime, Duration, and Interval types.
* Immutable, chainable, unambiguous API.
Expand Down Expand Up @@ -44,7 +45,7 @@ See [contributing](contributing.md).
[doc-url]: https://moment.github.io/luxon/docs/
[doc-coverage-image]: https://moment.github.io/luxon/docs/badge.svg

[test-coverage-url]: https://coveralls.io/github/moment/luxon?branch=master
[test-coverage-image]: https://coveralls.io/repos/github/moment/luxon/badge.svg?branch=master
[test-coverage-url]: https://codecov.io/gh/moment/luxon
[test-coverage-image]: https://codecov.io/gh/moment/luxon/branch/master/graph/badge.svg

[phasers-image]: https://img.shields.io/badge/phasers-stun-brightgreen.svg
2 changes: 0 additions & 2 deletions docker/npm-ci

This file was deleted.

172 changes: 172 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"lint!": "npm run format && npm run lint",
"format": "prettier --config .prettier.js --write 'src/**/*.js' 'test/**/*.js' 'benchmarks/*.js'",
"benchmark": "babel-node benchmarks/datetime.js",
"coveralls": "cat build/coverage/lcov.info | coveralls",
"codecov": "codecov",
"check-doc-coverage": "babel-node tasks/docCoverage"
},
"lint-staged": {
Expand All @@ -33,6 +33,7 @@
"babel-plugin-external-helpers": "latest",
"babel-preset-env": "latest",
"benchmark": "latest",
"codecov": "^3.0.0",
"core-js": "latest",
"coveralls": "latest",
"esdoc": "latest",
Expand Down

0 comments on commit 9ebc3f8

Please sign in to comment.