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:
3
build.py
3
build.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user