diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2017-09-18 18:05:16 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-09-18 18:05:16 -0400 |
commit | 835393c93e4fec867b5e2e0a638e7a14994c6b1d (patch) | |
tree | ea7529db1289ac2ca65fce9b7f6f892313c6f988 | |
parent | 88d315ae9adab430bd36722da8c6ab74c2e79cf0 (diff) | |
download | pytest-runner-835393c93e4fec867b5e2e0a638e7a14994c6b1d.tar.gz |
Use stages in travis to have deployment depend on success in all Python versions.
-rw-r--r-- | .travis.yml | 49 |
1 files changed, 29 insertions, 20 deletions
diff --git a/.travis.yml b/.travis.yml index 91ba39a..e2914e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,23 +1,32 @@ +dist: trusty sudo: false language: python -python: -- 2.7 -- 3.6 + +jobs: + fast_finish: true + include: + - python: 2.7 + - python: &latest_py3 3.6 + - stage: deploy + if: tag IS present + python: *latest_py3 + install: skip + script: skip + before_deploy: python bootstrap.py + deploy: + provider: pypi + on: + tags: true + all_branches: true + user: jaraco + # supply password with `travis encrypt --add deploy.password` + distributions: dists + skip_cleanup: true + skip_upload_docs: true + +cache: pip + install: -- pip install tox "setuptools>=28.2" -script: -- tox -branches: - except: - - skeleton -deploy: - provider: pypi - server: https://upload.pypi.org/legacy/ - on: - tags: true - all_branches: true - python: 3.6 - user: jaraco - # supply password with `travis encrypt --add deploy.password` - distributions: dists - skip_upload_docs: true +- pip install tox + +script: tox |