Windshaft-cartodb/Makefile

59 lines
1.6 KiB
Makefile
Raw Normal View History

2015-02-27 00:00:50 +08:00
SHELL=/bin/bash
pre-install:
@$(SHELL) ./scripts/check-node-canvas.sh
2012-07-10 00:56:09 +08:00
all:
2015-02-27 00:00:50 +08:00
@$(SHELL) ./scripts/install.sh
2012-07-10 00:56:09 +08:00
2012-07-10 21:56:40 +08:00
clean:
rm -rf node_modules/
2012-07-10 21:56:40 +08:00
distclean: clean
rm config.status*
config.status--test:
./configure --environment=test
config/environments/test.js: config.status--test
2017-09-22 03:53:05 +08:00
./config.status--test
2017-09-26 23:31:57 +08:00
TEST_SUITE := $(shell find test/{acceptance,integration,unit} -name "*.js")
2018-03-16 02:38:39 +08:00
TEST_SUITE_NO_PORTED := $(shell find test/acceptance test/integration test/unit -type f -not -path "*acceptance/ported*" -not -path "test/acceptance/overviews_queries.js" -name "*.js")
TEST_SUITE_UNIT := $(shell find test/unit -name "*.js")
TEST_SUITE_INTEGRATION := $(shell find test/integration -name "*.js")
TEST_SUITE_ACCEPTANCE := $(shell find test/acceptance -name "*.js")
test: config/environments/test.js
@echo "***tests***"
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE)
2015-07-08 05:46:58 +08:00
2018-03-16 02:38:39 +08:00
test-no-ported: config/environments/test.js
@echo "***tests no ported ***"
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_NO_PORTED)
test-unit: config/environments/test.js
@echo "***tests***"
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_UNIT)
test-integration: config/environments/test.js
@echo "***tests***"
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_INTEGRATION)
test-acceptance: config/environments/test.js
@echo "***tests***"
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_ACCEPTANCE)
jshint:
@echo "***jshint***"
@./node_modules/.bin/jshint lib/ test/ app.js
test-all: test jshint
2015-03-16 07:38:29 +08:00
coverage:
@RUNTESTFLAGS=--with-coverage make test
check: test
2015-03-23 21:21:08 +08:00
.PHONY: pre-install test jshint coverage