Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
Coveralls support.
Browse files Browse the repository at this point in the history
Tweaked help info. Added a coverage badge to the readme.
Added `dyn` as a command-line shortcut.
  • Loading branch information
ceejbot committed Jul 5, 2016
1 parent 7631e7f commit b239fd9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
sudo: false
language: node_js
node_js:
- "4.3"
- "5.7"
script:
- npm run travis
- "4"
- "5"
- "6"
script: npm run travis
after_success: npm run coverage
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

A command-line client for adding & removing single nodes to your DynECT zone.

[![on npm](http://img.shields.io/npm/v/dynector.svg?style=flat)](https://www.npmjs.org/package/dynector) [![Tests](http://img.shields.io/travis/npm/dynector.svg?style=flat)](http://travis-ci.org/npm/dynector) [![Dependencies](http://img.shields.io/david/npm/dynector.svg?style=flat)](https://david-dm.org/npm/dynector)
[![on npm](http://img.shields.io/npm/v/dynector.svg?style=flat)](https://www.npmjs.org/package/dynector) [![Tests](http://img.shields.io/travis/npm/dynector.svg?style=flat)](http://travis-ci.org/npm/dynector)
[![Coverage Status](https://coveralls.io/repos/github/npm/dynector/badge.svg?branch=master)](https://coveralls.io/github/npm/dynector?branch=master)

## Usage

Expand Down
6 changes: 3 additions & 3 deletions index.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ var
Dyn = require('dyn-js'),
yargs = require('yargs')
.usage('add and remove simple host records with Dyn DNS\n$0 [action] fqdn.example.com')
.example('$0 -a 10.0.0.11 foo.example.com', 'add 10.0.0.11 as an A record for foo.example.com')
.example('$0 --cname bar.example.com foo.example.com', 'add bar.example.com as CNAME for foo.example.com')
.example('$0 --delete gone.example.com', 'remove all records for gone.example.com')
.example('dynector -a 10.0.0.11 foo.example.com', 'add 10.0.0.11 as an A record for foo.example.com')
.example('dynector --cname bar.example.com foo.example.com', 'add bar.example.com as CNAME for foo.example.com')
.example('dynector --delete gone.example.com', 'remove all records for gone.example.com')
.option('cname',
{
alias: 'c',
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"version": "1.1.0",
"author": "C J Silverio <ceej@npmjs.com>",
"bin": {
"dynector": "index.js"
"dynector": "index.js",
"dyn": "index.js"
},
"bugs": {
"url": "https://github.com/npm/dynector/issues"
Expand All @@ -15,6 +16,7 @@
"yargs": "~4.7.0"
},
"devDependencies": {
"coveralls": "~2.11.9",
"eslint": "~3.0.1",
"mocha": "~2.5.3",
"must": "~0.13.1",
Expand All @@ -35,7 +37,7 @@
"url": "git://github.com/npm/dynector.git"
},
"scripts": {
"coverage": "nyc check-coverage --lines 95 --functions 95 --branches 95",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"test": "nyc mocha -R spec test.js",
"lint": "eslint *.js",
"travis": "npm run lint && npm test"
Expand Down

0 comments on commit b239fd9

Please sign in to comment.