Use stages in travis to have deployment depend on success in all Python versions.
This commit is contained in:
parent
88d315ae9a
commit
835393c93e
33
.travis.yml
33
.travis.yml
|
@ -1,23 +1,32 @@
|
||||||
|
dist: trusty
|
||||||
sudo: false
|
sudo: false
|
||||||
language: python
|
language: python
|
||||||
python:
|
|
||||||
- 2.7
|
jobs:
|
||||||
- 3.6
|
fast_finish: true
|
||||||
install:
|
include:
|
||||||
- pip install tox "setuptools>=28.2"
|
- python: 2.7
|
||||||
script:
|
- python: &latest_py3 3.6
|
||||||
- tox
|
- stage: deploy
|
||||||
branches:
|
if: tag IS present
|
||||||
except:
|
python: *latest_py3
|
||||||
- skeleton
|
install: skip
|
||||||
|
script: skip
|
||||||
|
before_deploy: python bootstrap.py
|
||||||
deploy:
|
deploy:
|
||||||
provider: pypi
|
provider: pypi
|
||||||
server: https://upload.pypi.org/legacy/
|
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
all_branches: true
|
all_branches: true
|
||||||
python: 3.6
|
|
||||||
user: jaraco
|
user: jaraco
|
||||||
# supply password with `travis encrypt --add deploy.password`
|
# supply password with `travis encrypt --add deploy.password`
|
||||||
distributions: dists
|
distributions: dists
|
||||||
|
skip_cleanup: true
|
||||||
skip_upload_docs: true
|
skip_upload_docs: true
|
||||||
|
|
||||||
|
cache: pip
|
||||||
|
|
||||||
|
install:
|
||||||
|
- pip install tox
|
||||||
|
|
||||||
|
script: tox
|
||||||
|
|
Loading…
Reference in New Issue
Block a user