Merge pull request #5713 from ahocevar/check-examples-http

Check examples with http protocol instead of file
This commit is contained in:
Andreas Hocevar
2016-08-12 08:46:41 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

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/phantomjs --local-to-remote-url-access=true --ssl-protocol=any --ignore-ssl-errors=true bin/check-example.js $<
./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
@touch $@
build/compiled-examples/all.js: $(EXAMPLES_JS)

View File

@@ -67,6 +67,7 @@
"phantomjs-prebuilt": "2.1.11",
"proj4": "2.3.14",
"resemblejs": "2.2.1",
"serve-files": "1.0.0",
"sinon": "1.17.5",
"slimerjs": "0.906.2"
},