gecko-dev/third_party/python/pip-tools/.travis.yml

107 строки
2.4 KiB
YAML

dist: xenial
sudo: false
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
env:
# NOTE: keep this in sync with envlist in tox.ini for tox-travis.
- PIP=8.1.1
- PIP=9.0.1
- PIP=9.0.3
- PIP=10.0.1
- PIP=18.0
- PIP=19.0.3
- PIP=19.1
- PIP=19.2.3
- PIP=19.3
- PIP=20.0
- PIP=latest
- PIP=master
cache: false
install:
- travis_retry pip install tox-travis
script:
- tox
stages:
- baseline
- test
- name: deploy
if: repo = jazzband/pip-tools AND tag IS present
jobs:
exclude:
- python: "pypy3.5-6.0"
env: PIP=8.1.1
# platform.linux_distribution() is removed in Python 3.8 (bpo-28167).
- python: "3.8"
env: PIP=8.1.1
# Baseline jobs (included there/below).
- env: PIP=latest
python: "3.8"
- env: PIP=latest
python: "3.7"
- env: PIP=latest
python: "2.7"
include:
# Baseline stage to abort early.
- stage: baseline
env: PIP=latest
python: "3.8"
- env: PIP=latest
python: "3.7"
- env: PIP=latest
python: "2.7"
# QA checks.
- env: TOXENV=checkqa
python: 3.7
after_success: skip # No need coverage
cache:
directories:
- $HOME/.cache/pre-commit
- env: TOXENV=readme
python: 2.7
after_success: skip # No need coverage
# Only test pypy/pypy3 with latest pip.
- env: PIP=latest
python: "pypy2.7-6.0"
- env: PIP=latest
python: "pypy3.5-6.0"
- stage: deploy
install: skip # No need to install tox-travis on deploy.
script: skip # No test on the deploy stage.
python: 2.7
env: skip # No special env required.
after_success: true # No need coverage
deploy:
provider: pypi
user: jazzband
server: https://jazzband.co/projects/pip-tools/upload
distributions: sdist bdist_wheel
password:
secure: TCG9beQgarL/EDHiwSCgEf1JnofTroA5QRp2OTL3QC+eaar6FftqxcJQw3FwnHJ7NarI6E7bcxn9wDRs6tXqiLcyGOzWUnR4jQ94w/7YaLQjzLr8g1toRnb9dNwU1l14z2hmnzc4oRqu7+pi4wIpBx+11Ke9JXNcrC+cRFwCdLQ=
on:
tags: true
repo: jazzband/pip-tools
allow_failures:
- env: PIP=master
after_success:
- travis_retry pip install codecov coveralls
- travis_retry codecov --required -n "py${TRAVIS_PYTHON_VERSION}-pip${PIP}-${TRAVIS_OS_NAME}"
- "COVERALLS_PARALLEL=true coveralls"
notifications:
webhooks: https://coveralls.io/webhook