Windshaft-cartodb/Makefile

65 lines
1.4 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/*
distclean: clean
rm config.status*
config.status--test:
./configure --environment=test
config/environments/test.js: config.status--test
./config.status--test
test: config/environments/test.js
@echo "***tests***"
2015-02-27 00:00:50 +08:00
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} \
test/unit/cartodb/*.js \
test/unit/cartodb/cache/model/*.js \
test/integration/*.js \
test/acceptance/*.js \
test/acceptance/cache/*.js
2015-07-08 05:46:58 +08:00
test-ported: config/environments/test.js
@echo "***tests ported***"
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} \
2015-07-08 06:12:32 +08:00
test/unit/cartodb/ported/*.js \
2015-07-08 05:46:58 +08:00
test/acceptance/ported/*.js
test-unit: config/environments/test.js
@echo "***tests***"
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} \
test/unit/cartodb/*.js \
test/unit/cartodb/cache/model/*.js
test-integration: config/environments/test.js
@echo "***tests***"
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} \
test/integration/*.js
test-acceptance: config/environments/test.js
@echo "***tests***"
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} \
test/acceptance/*.js \
test/acceptance/cache/*.js
jshint:
@echo "***jshint***"
@./node_modules/.bin/jshint lib/ test/ app.js
2015-07-08 05:46:58 +08:00
test-all: jshint test test-ported
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