ignore SSL errors for local tests, part of MKWS-391
authorWolfram Schneider <wosch@indexdata.dk>
Thu, 25 Jun 2015 09:13:31 +0000 (11:13 +0200)
committerWolfram Schneider <wosch@indexdata.dk>
Thu, 25 Jun 2015 09:13:31 +0000 (11:13 +0200)
phantomjs --ignore-ssl-errors=true

test/Makefile

index 2d3e8bb..451371c 100644 (file)
@@ -9,6 +9,7 @@ APACHE_PORT:= $(shell echo $${APACHE_PORT-4040})
 PHANTOMJS_PATH=jasmine-local-popup.html
 PHANTOMJS_URL=http://localhost:${APACHE_PORT}/${PHANTOMJS_PATH}
 PHANTOMJS_TIMEOUT ?= 30
+PHANTOMJS_FLAGS ?= --ignore-ssl-errors=true
 
 NPM_INSTALL_FLAGS=-q
 JASMINE_NODE=  ./node_modules/jasmine-node/bin/jasmine-node
@@ -61,7 +62,7 @@ phantomjs p: check-js apache-stop apache-start _phantomjs
        ${MAKE} apache-stop
 
 _phantomjs:
-       ./bin/bomb --timeout="${PHANTOMJS_TIMEOUT}.5" ${PHANTOMJS} phantom/run-jasmine.js ${PHANTOMJS_URL} ${PHANTOMJS_TIMEOUT}
+       ./bin/bomb --timeout="${PHANTOMJS_TIMEOUT}.5" -- ${PHANTOMJS} ${PHANTOMJS_FLAGS} phantom/run-jasmine.js ${PHANTOMJS_URL} ${PHANTOMJS_TIMEOUT}
 
 phantomjs-all p-all:
        ${MAKE} phantomjs PHANTOMJS_PATH=jasmine-local-popup.html