Skip to content

Commit

Permalink
add a makefile for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Aug 28, 2011
1 parent 28399fd commit f5f6cec
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
test: deps
@find test -name '*_test.coffee' | xargs -n 1 -t coffee

dev: generate-js
@coffee -wc --bare -o lib src/*.coffee

generate-js:
@find src -name '*.coffee' | xargs coffee -c -o lib

remove-js:
@rm -fr lib/

deps:

.PHONY: all
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ This is a version of GitHub's Campfire bot, hubot. He's pretty cool.

This version is designed to be deployed on heroku.


Deployment
==========

Expand Down Expand Up @@ -45,7 +44,6 @@ Web URL. Be sure to remove the `http://` prefix from it.

% heroku config:add HUBOT_WEB_HOST="galaxy324.herokuapp.com"


Restart the bot
---------------
You may want to get comfortable with `heroku logs` and `heroku restart`
Expand All @@ -58,3 +56,7 @@ It's easy to test scripts locally with the shell:

% bin/hubot

Run tests:

% make test

0 comments on commit f5f6cec

Please sign in to comment.