add a test target to Makefile

This commit is contained in:
Éric Lemoine
2012-09-24 22:31:48 +02:00
parent fbaefeea7c
commit 2aac0140c1

View File

@@ -1,4 +1,5 @@
JSDOC = jsdoc
PHANTOMJS = phantomjs
PLOVR_JAR = bin/plovr-4b3caf2b7d84.jar
SRC = $(shell find exports externs src/ol -name \*.js)
TARGETS = $(shell find demos -name advanced-optimizations.js -o -name simple-optimizations.js)
@@ -110,6 +111,10 @@ $(PLOVR_JAR):
doc:
$(JSDOC) -t doc/template -r src -d build/apidoc
.PHONY: test
test:
$(PHANTOMJS) test/phantom-jasmine/run_jasmine_test.coffee test/ol.html
clean:
rm -f build/all.js
rm -f build/ol.js