CartoDB-SQL-API/Makefile

33 lines
650 B
Makefile
Raw Normal View History

all:
npm install
clean:
rm -rf node_modules/*
check:
npm test
2015-05-13 00:33:57 +08:00
jshint:
@echo "***jshint***"
@./node_modules/.bin/jshint app/ test/ app.js
TEST_SUITE := $(shell find test/{acceptance,unit} -name "*.js")
TEST_SUITE_UNIT := $(shell find test/unit -name "*.js")
TEST_SUITE_ACCEPTANCE := $(shell find test/acceptance -name "*.js")
2015-05-13 00:33:57 +08:00
test:
2015-05-13 19:13:16 +08:00
@echo "***tests***"
test/run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE)
2015-05-13 00:33:57 +08:00
test-unit:
2015-05-13 19:13:16 +08:00
@echo "***unit tests***"
test/run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_UNIT)
2015-05-13 00:33:57 +08:00
test-acceptance:
2015-05-13 19:13:16 +08:00
@echo "***acceptance tests***"
test/run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_ACCEPTANCE)
2015-05-13 00:33:57 +08:00
2015-05-13 19:13:16 +08:00
test-all: jshint test
2015-05-13 00:33:57 +08:00
.PHONY: test