From 58a8e7d352873fda15cdd223c869045419038044 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Thu, 11 Aug 2016 23:07:27 +0200 Subject: [PATCH] Check examples with http protocol instead of file --- Makefile | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 88cbde959b..6b20ceeb90 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/package.json b/package.json index 438d56bc3c..292a67b02d 100644 --- a/package.json +++ b/package.json @@ -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" },