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/*
|
|
|
|
|
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
|
|
|
|
|
2012-12-20 20:08:56 +08:00
|
|
|
check-local: config/environments/test.js
|
2013-04-15 15:32:32 +08:00
|
|
|
./run_tests.sh ${RUNTESTFLAGS} \
|
2015-01-30 23:50:06 +08:00
|
|
|
test/unit/cartodb/*.js \
|
|
|
|
test/unit/cartodb/cache/model/*.js \
|
2015-01-31 01:57:01 +08:00
|
|
|
test/integration/*.js \
|
2015-01-30 23:50:06 +08:00
|
|
|
test/acceptance/*.js \
|
|
|
|
test/acceptance/cache/*.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/"; \
|
2013-04-15 15:33:41 +08:00
|
|
|
for sub in windshaft grainstore node-varnish mapnik; do \
|
2013-09-05 00:19:09 +08:00
|
|
|
if test -e node_modules/$${sub}; then \
|
|
|
|
echo "Testing submodule $${sub}"; \
|
|
|
|
make -C node_modules/$${sub} check || exit 1; \
|
|
|
|
fi; \
|
2012-12-20 20:08:56 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
check-full: check-local check-submodules
|
|
|
|
|
|
|
|
check: check-local
|
2012-12-21 20:30:14 +08:00
|
|
|
|