diff options
Diffstat (limited to 'third_party/python/pip-tools/.travis.yml')
-rw-r--r-- | third_party/python/pip-tools/.travis.yml | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/third_party/python/pip-tools/.travis.yml b/third_party/python/pip-tools/.travis.yml new file mode 100644 index 0000000000..7ed071a83c --- /dev/null +++ b/third_party/python/pip-tools/.travis.yml @@ -0,0 +1,72 @@ +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=latest + - PIP=20.2 # TODO: update to 20.1 after pip-20.2 being released + - PIP=20.0 + +cache: false +install: + - travis_retry python -m pip install -U tox-travis virtualenv +script: + - tox + +stages: +- test +- name: deploy + if: repo = jazzband/pip-tools AND tag IS present + +jobs: + include: + # 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 |