Ignore SSL errors on CI.

This commit is contained in:
Tim 'mithro' Ansell 2020-04-06 17:36:09 -07:00
parent 2b2aff1274
commit a1dd8fc883
1 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,10 @@ def sifive_riscv_download():
assert not os.path.exists(dst), dst
os.symlink(src, dst)
if os.environ.get('TRAVIS', '') == 'true':
# Ignore `ssl.SSLCertVerificationError` on CI.
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
if len(sys.argv) < 2:
print("Available commands:")