2015-05-13 23:20:16 +00:00
|
|
|
.PHONY: test
|
|
|
|
|
2015-05-14 03:00:56 +00:00
|
|
|
targets = lists.js reduce.js
|
|
|
|
|
|
|
|
all: $(targets)
|
|
|
|
|
|
|
|
%.js: src/%.coffee
|
|
|
|
coffee -c -o . $<
|
|
|
|
|
2015-05-13 23:20:16 +00:00
|
|
|
node_modules: package.json
|
|
|
|
mkdir -p node_modules
|
|
|
|
npm install
|
|
|
|
|
2015-06-23 00:03:21 +00:00
|
|
|
test: clean node_modules
|
|
|
|
@JUNIT_REPORT_PATH=test-reports.xml JUNIT_REPORT_STACK=1 ./node_modules/.bin/mocha \
|
|
|
|
--reporter mocha-jenkins-reporter --compilers coffee:coffee-script/register || true
|
|
|
|
|
|
|
|
ltest: node_modules
|
2015-05-13 23:20:16 +00:00
|
|
|
@node_modules/.bin/mocha --compilers coffee:coffee-script/register
|
|
|
|
|
2015-05-14 03:00:56 +00:00
|
|
|
clean:
|
|
|
|
rm -f $(targets)
|