Skip to content

Commit

Permalink
Merge pull request #301 from manics/travis
Browse files Browse the repository at this point in the history
[MRG] Travis: Deploy releases to pypi
  • Loading branch information
consideRatio authored Nov 18, 2019
2 parents 0d2b44c + cc9d122 commit 791c3ec
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ language: python
sudo: false
cache: pip
dist: xenial
python:
- nightly
- 3.7
- 3.6
- 3.5

install:
- pip install --upgrade pip
- pip install --upgrade --pre -r test-requirements.txt .
Expand All @@ -24,7 +20,24 @@ script:
after_success:
- codecov

matrix:
jobs:
allow_failures:
- python: nightly
fast_finish: true
include:
# Default stage: test
- python: 3.7
env: TEST_LINT=1
- python: 3.7
- python: 3.6
- python: 3.5
- python: nightly
# Only deploy if all test jobs passed
- stage: deploy
python: 3.7
if: tag IS present
deploy:
provider: pypi
user: __token__
# password: see secret PYPI_PASSWORD variable
distributions: sdist bdist_wheel

0 comments on commit 791c3ec

Please sign in to comment.