CartoDB-SQL-API/Makefile
2016-01-22 12:27:33 +01:00

38 lines
758 B
Makefile

SHELL=/bin/bash
all:
npm install
clean:
rm -rf node_modules/*
check:
npm test
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")
test:
@echo "***tests***"
@$(SHELL) test/run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE)
test-unit:
@echo "***unit tests***"
@$(SHELL) test/run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_UNIT)
test-acceptance:
@echo "***acceptance tests***"
@$(SHELL) test/run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_ACCEPTANCE)
test-all: jshint test
coverage:
@RUNTESTFLAGS=--with-coverage make test
.PHONY: test coverage