Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Commit

Permalink
Remove changelog and use GitHub release notes instead. Move npm relea…
Browse files Browse the repository at this point in the history
…se to travis
  • Loading branch information
Kimmo Brunfeldt committed Mar 8, 2014
1 parent 9aa6942 commit 28eba67
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 41 deletions.
14 changes: 10 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
language: node_js
node_js:
- "0.11"
- "0.10"
- '0.11'
- '0.10'
before_script:
- npm install -g mocha
- npm install -g mocha
notifications:
email:
- [email protected]
- [email protected]
deploy:
provider: npm
api_key:
secure: BaR508fKqIBXHYXbAwpFyBJwAzYEQ+LwoMWbuBcc9YeEoiPbsFYG2kky1lUMBzHDHMHlqMelaFdStmSXDcu4nVV4QXQdE/jxUuJiaAgiIPoA+ULlfd2JfHM0QJVgda6Px5rtInD6ZZLjv32GDg0I4T6W87RVVriEeG/ZsWHrylI=
on:
tags: true
11 changes: 9 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ module.exports = function(grunt) {
},
command: 'mocha'
}
},
release: {
options: {
// Don't release to NPM since travis does this
npm: false,
npmtag: false,
// default: 'release <%= version %>'
commitMessage: 'Release <%= version %>'
}
}
});

Expand All @@ -27,6 +36,4 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-release');

grunt.registerTask('test', ['jshint', 'shell:mocha']);
grunt.registerTask('publish', ['test', 'release']);

};
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,21 @@ You need to have [PhantomJS](http://phantomjs.org/) installed globally. `phantom

## Test

npm test
grunt test

You need to have *mocha* installed globally with `npm install -g mocha`.

## Releasing
## Release

* Edit [changelog][changelog.md]
* `grunt publish`
* Commit all changes
* Run `grunt release`, which will create new tag and publish code to GitHub

It will run tests and publish code to GitHub and npm
Travis will release newest tag to NPM

* Edit GitHub [release notes](releases)


To see an example how to release minor/major, check https://github.com/geddski/grunt-release

## Attribution

Expand Down
30 changes: 0 additions & 30 deletions changelog.md

This file was deleted.

0 comments on commit 28eba67

Please sign in to comment.