Create a check-example task for smarter example checking with PhantomJS

This commit is contained in:
Andreas Hocevar
2016-08-12 11:42:36 +02:00
parent 7b62f13eb6
commit 7b2bdbc064
3 changed files with 74 additions and 1 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ build/timestamps/check-%-timestamp: $(BUILD_HOSTED)/examples/%.html \
$(BUILD_HOSTED)/build/ol.js \
$(BUILD_HOSTED)/css/ol.css
@mkdir -p $(@D)
./node_modules/.bin/serve-files 8000 . & pid=$$! && ./node_modules/.bin/phantomjs --ssl-protocol=any --ignore-ssl-errors=true bin/check-example.js http://localhost:8000/$< && kill -9 $$pid
node tasks/check-example.js $<
@touch $@
build/compiled-examples/all.js: $(EXAMPLES_JS)