File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,18 @@ install:
3939 - pip install --upgrade "setuptools<=39.2.0; python_version < '3.9'"
4040 - pip install --upgrade -r requirements.txt -r dev-requirements.txt
4141 - python setup.py develop
42+ before_script :
43+ # deal with Let's Encrypt's ISRG Root CA X1 being cross-signed by an expired root
44+ # only needed on trusty - mark the bad cert disabled in conf, update ca-certificates
45+ # bundle, then tell python-requests to use the system bundle instead of certifi's
46+ # (as of 2021-10-05, certifi still stubbornly bundles the expired root;
47+ # see https://github.com/certifi/python-certifi/pull/162
48+ # and https://bugzilla.mozilla.org/show_bug.cgi?id=1733560 for updates)
49+ - if [ "$TRAVIS_DIST" == "trusty" ]; then
50+ sudo sed -re 's#^(mozilla/DST_Root_CA_X3.crt)$#!\1#' -i /etc/ca-certificates.conf;
51+ sudo update-ca-certificates;
52+ export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt;
53+ fi
4254script :
4355 - make travis
4456env :
You can’t perform that action at this time.
0 commit comments