language: python os: linux dist: focal before_install: - env - openssl version - python -c "import ssl; print(ssl.OPENSSL_VERSION)" install: - python3 -m pip install nox script: - ./ci/run.sh - ./ci/upload_coverage.sh cache: directories: - ${HOME}/.cache notifications: email: false env: global: - PYTHONWARNINGS=always::DeprecationWarning - PYPI_USERNAME=urllib3 # PYPI_PASSWORD is set in Travis control panel. jobs: # Downstream integration tests. - python: 3.7 env: DOWNSTREAM=requests stage: integration - python: 3.7 env: DOWNSTREAM=botocore stage: integration - python: 3.7 stage: deploy script: - ./ci/deploy.sh stages: - name: test if: tag IS blank # Run integration tests for release candidates - name: integration if: type = pull_request AND head_branch =~ ^release-[\d.]+$ AND tag IS blank # Deploy on any tags - name: deploy if: tag IS present AND tag =~ /^(\d+\.\d+(?:.\d+)?)$/ AND repo = urllib3/urllib3