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/*
|
|
|
|
|
2013-11-14 23:21:40 +08:00
|
|
|
distclean: clean
|
|
|
|
rm config.status*
|
|
|
|
|
|
|
|
config.status--test:
|
2013-08-21 16:50:49 +08:00
|
|
|
./configure --environment=test
|
2012-07-20 23:31:10 +08:00
|
|
|
|
2013-11-14 23:21:40 +08:00
|
|
|
config/environments/test.js: config.status--test
|
|
|
|
./config.status--test
|
|
|
|
|
2015-02-23 19:08:08 +08:00
|
|
|
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
|
2012-12-20 20:08:56 +08:00
|
|
|
|
2015-03-16 06:37:03 +08:00
|
|
|
jshint:
|
|
|
|
@echo "***jshint***"
|
|
|
|
@./node_modules/.bin/jshint lib/
|
|
|
|
|
2015-03-16 07:38:29 +08:00
|
|
|
test-all: jshint test
|
|
|
|
|
2015-02-23 19:08:08 +08:00
|
|
|
check: test
|
2012-12-21 20:30:14 +08:00
|
|
|
|
2015-02-27 00:00:50 +08:00
|
|
|
.PHONY: pre-install test
|