Use --ssl-protocol=any in PhantomJS with a page that uses HTTPS

The `check-examples` target fails on Travis without this option.  We get "SSL handshake failed" when loading resources via HTTPS with whatever the default SSL protocol is.

In addition, as a precaution, the --ignore-ssl-errors option is set to true in case anybody adds a resource with an invalid certificate.  This option does not get around SSL handshake errors.
This commit is contained in:
Tim Schaub
2015-04-17 06:35:12 -06:00
parent 7c8eaae6a1
commit 4e8b10ae1c

View File

@@ -708,7 +708,8 @@ def check_examples(t):
# Run the examples checks in a pool of threads
pool = ThreadPool()
for example in all_examples:
pool.add_task(t.run, '%(PHANTOMJS)s', 'bin/check-example.js', example)
pool.add_task(t.run, '%(PHANTOMJS)s', '--ssl-protocol=any',
'--ignore-ssl-errors=true', 'bin/check-example.js', example)
errors = pool.wait_completion()
if errors:
sys.exit(1)