2012-07-13 00:08:21 +08:00
|
|
|
all:
|
|
|
|
npm install
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf node_modules/*
|
|
|
|
|
|
|
|
check:
|
|
|
|
npm test
|
2015-05-13 00:33:57 +08:00
|
|
|
|
2015-05-13 19:01:01 +08:00
|
|
|
jshint:
|
|
|
|
@echo "***jshint***"
|
|
|
|
@./node_modules/.bin/jshint app/ test/ app.js
|
|
|
|
|
2015-05-13 00:33:57 +08:00
|
|
|
test:
|
2015-05-13 19:13:16 +08:00
|
|
|
@echo "***tests***"
|
2015-05-13 00:33:57 +08:00
|
|
|
test/run_tests.sh ${RUNTESTFLAGS} test/unit/*.js test/unit/model/*.js test/acceptance/*.js test/acceptance/export/*.js
|
|
|
|
|
|
|
|
test-unit:
|
2015-05-13 19:13:16 +08:00
|
|
|
@echo "***unit tests***"
|
2015-05-13 00:33:57 +08:00
|
|
|
test/run_tests.sh ${RUNTESTFLAGS} test/unit/*.js test/unit/model/*.js
|
|
|
|
|
|
|
|
test-acceptance:
|
2015-05-13 19:13:16 +08:00
|
|
|
@echo "***acceptance tests***"
|
2015-05-13 00:33:57 +08:00
|
|
|
test/run_tests.sh ${RUNTESTFLAGS} test/acceptance/*.js test/acceptance/export/*.js
|
|
|
|
|
2015-05-13 19:13:16 +08:00
|
|
|
test-all: jshint test
|
|
|
|
|
2015-05-13 00:33:57 +08:00
|
|
|
.PHONY: test
|