Skip to content

Commit

Permalink
Enabled builds on travis-ci and coverage reports on coveralls (#14)
Browse files Browse the repository at this point in the history
Enabled builds on travis-ci and coverage reports on coveralls
  • Loading branch information
SwinX committed Mar 16, 2017
1 parent 52d454e commit c3967f2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: node_js
script: npm run ${NPM_SCRIPT}
after_success: cat ${TRAVIS_BUILD_DIR}/coverage/lcov.info | coveralls

matrix:
fast_finish: true
include:
# lint run
- node_js: '6'
env: NPM_SCRIPT=lint

# unit tests
- node_js: '6'
env: NPM_SCRIPT='test --coverage'

- node_js: '7'
env: NPM_SCRIPT='test --coverage'
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# DocPub

[![Build Status](https://travis-ci.org/rakutentech/docpub.svg?branch=master)](https://travis-ci.org/rakutentech/docpub)
[![Coverage Status](https://coveralls.io/repos/github/rakutentech/docpub/badge.svg)](https://coveralls.io/github/rakutentech/docpub)

DocPub is a command line utility for converting a folder structure of markdown files to HTML and uploading the result to Zendesk.

## Getting Started
Expand All @@ -18,7 +21,7 @@ export ZENDESK_API_USERNAME="{Your username}"
export ZENDESK_API_TOKEN="{Your API token}"
export ZENDESK_URL="{Your fully qualified Zendesk URL}"
```

Then check that the variables are included with `env`.

3. Run the command `docpub` from the directory that you wish to convert and upload.
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"bluebird": "3.4.7",
"chalk": "^1.1.3",
"chalk": "1.1.3",
"commander": "2.9.0",
"fs-promise": "2.0.0",
"highlight.js": "9.9.0",
Expand All @@ -43,13 +43,14 @@
"devDependencies": {
"chai": "3.5.0",
"chai-as-promised": "6.0.0",
"clear-require": "^2.0.0",
"clear-require": "2.0.0",
"coveralls": "2.12.0",
"dotenv": "4.0.0",
"eslint": "3.15.0",
"husky": "0.13.1",
"istanbul": "0.4.5",
"mocha": "3.2.0",
"mock-fs": "3.12.1",
"mock-fs": "4.2.0",
"proxyquire": "1.7.11",
"sinon": "1.17.7",
"sinon-as-promised": "4.0.2",
Expand Down

0 comments on commit c3967f2

Please sign in to comment.