Skip to content

Commit

Permalink
chore: add automatic releases (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Aug 2, 2016
1 parent 711e45c commit 020f9e9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- "6"
- "5"
- "4"
before_install:
- npm install -g coveralls codeclimate-test-reporter
before_script:
- npm prune
script:
- xo ./lib/**/*.js
- istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --require test/bootstrap test/*.test.js test/**/*.test.js
- cat ./coverage/lcov.info | coveralls || echo 'Failed to upload to coveralls...'
- codeclimate-test-reporter < ./coverage/lcov.info || echo 'Failed to upload to codeclimate...'
after_success:
- npm run semantic-release
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![Build Status](https://travis-ci.org/patrickhulce/klay.svg?branch=master)](https://travis-ci.org/patrickhulce/klay)
[![Coverage Status](https://coveralls.io/repos/github/patrickhulce/klay/badge.svg?branch=master)](https://coveralls.io/github/patrickhulce/klay?branch=master)
[![Code Climate](https://codeclimate.com/github/patrickhulce/klay/badges/gpa.svg)](https://codeclimate.com/github/patrickhulce/klay)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![Dependencies](https://david-dm.org/patrickhulce/klay
.svg)](https://david-dm.org/patrickhulce/klay)

Expand Down
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
"scripts": {
"test": "xo ./lib/**/*.js && mocha --reporter spec --require test/bootstrap test/*.test.js test/**/*.test.js",
"test-coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --require test/bootstrap test/*.test.js test/**/*.test.js",
"test-watch": "mocha --watch --reporter dot --require test/bootstrap test/*.test.js test/**/*.test.js"
"test-watch": "mocha --watch --reporter dot --require test/bootstrap test/*.test.js test/**/*.test.js",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
"type": "git",
"url": "git+https://github.com/patrickhulce/klay.git"
"url": "https://github.com/patrickhulce/klay.git"
},
"keywords": [
"validation"
Expand All @@ -30,8 +31,10 @@
},
"devDependencies": {
"chai": "^3.5.0",
"cz-conventional-changelog": "^1.1.6",
"istanbul": "^0.4.4",
"mocha": "^2.5.3",
"semantic-release": "^4.3.5",
"sinon": "^1.17.4",
"sinon-chai": "^2.8.0",
"xo": "^0.16.0"
Expand Down Expand Up @@ -72,5 +75,10 @@
"object"
]
}
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}

0 comments on commit 020f9e9

Please sign in to comment.