Permalink
Browse files

travisify badge command

  • Loading branch information...
1 parent 0d34b02 commit 95cd781c228237867319895b020880fb656a84fc @substack committed Apr 10, 2012
Showing with 26 additions and 1 deletion.
  1. +18 −0 README.markdown
  2. +7 −0 bin/cmd.js
  3. +1 −1 package.json
View
@@ -46,6 +46,24 @@ $ travisify test
test hook sent for substack/upnode/213466
```
+commands
+========
+
+travisify
+---------
+
+Add a github hook for travis if one hasn't already been added.
+
+travisify test
+--------------
+
+Trigger a test request for the travis hook.
+
+travisify badge
+---------------
+
+Generate a markdown travis badge to put in your readme.
+
license
=======
View
@@ -20,6 +20,13 @@ withConfig(function (config) {
else if (process.argv[2] === 'test') {
testHook(config, repo);
}
+ else if (process.argv[2] === 'badge') {
+ console.log([
+ '[![build status](https://secure.travis-ci.org/',
+ repo, '.png)]',
+ '(http://travis-ci.org/', repo, ')',
+ ].join(''));
+ }
else addHook(config, repo)
});
});
View
@@ -1,7 +1,7 @@
{
"name" : "travisify",
"description" : "add travis-ci hooks to github",
- "version" : "0.0.1",
+ "version" : "0.0.2",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/travisify.git"

0 comments on commit 95cd781

Please sign in to comment.