2013-08-12 18:23:30 +00:00
|
|
|
test:
|
|
|
|
./node_modules/.bin/mocha --compilers coffee:coffee-script --reporter spec --ui exports --bail
|
|
|
|
|
2013-10-16 11:10:53 +00:00
|
|
|
publish:
|
|
|
|
git checkout gh-pages
|
|
|
|
git show master:build/build.js > build.js
|
|
|
|
git show master:build/build.css > build.css
|
|
|
|
git add .
|
|
|
|
@status=$$(git status --porcelain); \
|
|
|
|
if ! test "x$${status}" = x; then \
|
|
|
|
git commit -m 'publish latest build to gh-pages'; \
|
|
|
|
git push -u origin gh-pages; \
|
|
|
|
fi
|
|
|
|
git checkout master
|
|
|
|
|
2013-08-12 18:23:30 +00:00
|
|
|
.PHONY: test
|