CartoDB-SQL-API/Makefile

38 lines
765 B
Makefile
Raw Normal View History

2016-01-22 19:22:54 +08:00
SHELL=/bin/bash
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/ batch/ 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***"
2016-01-22 19:22:54 +08:00
@$(SHELL) 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***"
2016-01-22 19:22:54 +08:00
@$(SHELL) 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***"
2016-01-22 19:22:54 +08:00
@$(SHELL) 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
2016-01-22 19:18:20 +08:00
coverage:
@RUNTESTFLAGS=--with-coverage make test
.PHONY: test coverage