2013-04-15 15:20:51 +08:00
|
|
|
srcdir=$(shell pwd)
|
|
|
|
|
2012-07-10 00:56:09 +08:00
|
|
|
all:
|
|
|
|
npm install
|
|
|
|
|
2012-07-10 21:56:40 +08:00
|
|
|
clean:
|
|
|
|
rm -rf node_modules/*
|
|
|
|
|
2012-07-20 23:31:10 +08:00
|
|
|
config/environments/test.js: config/environments/test.js.example
|
|
|
|
./configure
|
|
|
|
|
2012-12-20 20:08:56 +08:00
|
|
|
check-local: config/environments/test.js
|
2013-04-12 17:52:09 +08:00
|
|
|
./run_tests.sh --nodrop ${RUNTESTFLAGS} \
|
2012-12-19 15:39:19 +08:00
|
|
|
test/unit/cartodb/redis_pool.test.js \
|
|
|
|
test/unit/cartodb/req2params.test.js \
|
|
|
|
test/acceptance/cache_validator.js \
|
2013-04-12 17:52:09 +08:00
|
|
|
test/acceptance/server.js \
|
2013-04-15 15:22:50 +08:00
|
|
|
test/acceptance/multilayer.js
|
2012-12-20 20:08:56 +08:00
|
|
|
|
|
|
|
check-submodules:
|
2013-04-15 15:20:51 +08:00
|
|
|
PATH="$$PATH:$(srcdir)/node_modules/.bin/"; \
|
2012-12-20 20:08:56 +08:00
|
|
|
for sub in windshaft grainstore mapnik; do \
|
|
|
|
test -e node_modules/$${sub} && make -C node_modules/$${sub} check; \
|
|
|
|
done
|
|
|
|
|
|
|
|
check-full: check-local check-submodules
|
|
|
|
|
|
|
|
check: check-local
|
2012-12-21 20:30:14 +08:00
|
|
|
|