Skip to content

Commit 791c3ec

Browse files
authored
Merge pull request #301 from manics/travis
[MRG] Travis: Deploy releases to pypi
2 parents 0d2b44c + cc9d122 commit 791c3ec

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.travis.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ language: python
22
sudo: false
33
cache: pip
44
dist: xenial
5-
python:
6-
- nightly
7-
- 3.7
8-
- 3.6
9-
- 3.5
5+
106
install:
117
- pip install --upgrade pip
128
- pip install --upgrade --pre -r test-requirements.txt .
@@ -24,7 +20,24 @@ script:
2420
after_success:
2521
- codecov
2622

27-
matrix:
23+
jobs:
24+
allow_failures:
25+
- python: nightly
26+
fast_finish: true
2827
include:
28+
# Default stage: test
2929
- python: 3.7
3030
env: TEST_LINT=1
31+
- python: 3.7
32+
- python: 3.6
33+
- python: 3.5
34+
- python: nightly
35+
# Only deploy if all test jobs passed
36+
- stage: deploy
37+
python: 3.7
38+
if: tag IS present
39+
deploy:
40+
provider: pypi
41+
user: __token__
42+
# password: see secret PYPI_PASSWORD variable
43+
distributions: sdist bdist_wheel

0 commit comments

Comments
 (0)