Skip to content

Commit 0e8a3c5

Browse files
authored
Update travis.yml (#1010)
* Use xenial dist * Only install coveralls after success * Latest version of pypi * Refactor travis.yml into stages and add travis-tox * Drop 2.6 * Bump to python 3.7
1 parent ac6714e commit 0e8a3c5

File tree

2 files changed

+39
-30
lines changed

2 files changed

+39
-30
lines changed

.travis.yml

Lines changed: 37 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,44 @@
11
language: python
2-
matrix:
3-
include:
4-
- env: TOXENV=py27
5-
python: 2.7
6-
- env: TOXENV=py35
7-
python: 3.5
8-
- env: TOXENV=py36
9-
python: 3.6
10-
- env: TOXENV=py37
11-
python: 3.7
12-
dist: xenial
13-
sudo: true
14-
- env: TOXENV=pypy
15-
python: pypy-5.7.1
16-
- env: TOXENV=pre-commit
17-
python: 3.6
18-
- env: TOXENV=mypy
19-
python: 3.6
2+
dist: xenial
3+
4+
python:
5+
- "2.7"
6+
- "3.5"
7+
- "3.6"
8+
- "3.7"
9+
- "pypy3"
10+
2011
install:
21-
- pip install coveralls tox
12+
- pip install tox tox-travis
2213
script: tox
23-
after_success: coveralls
14+
after_success:
15+
- pip install coveralls
16+
- coveralls
2417
cache:
2518
directories:
2619
- $HOME/.cache/pip
2720
- $HOME/.cache/pre-commit
28-
deploy:
29-
provider: pypi
30-
user: syrusakbary
31-
on:
32-
tags: true
33-
password:
34-
secure: LHOp9DvYR+70vj4YVY8+JRNCKUOfYZREEUY3+4lMUpY7Zy5QwDfgEMXG64ybREH9dFldpUqVXRj53eeU3spfudSfh8NHkgqW7qihez2AhSnRc4dK6ooNfB+kLcSoJ4nUFGxdYImABc4V1hJvflGaUkTwDNYVxJF938bPaO797IvSbuI86llwqkvuK2Vegv9q/fy9sVGaF9VZIs4JgXwR5AyDR7FBArl+S84vWww4vTFD33hoE88VR4QvFY3/71BwRtQrnCMm7AOm31P9u29yi3bpzQpiOR2rHsgrsYdm597QzFKVxYwsmf9uAx2bpbSPy2WibunLePIvOFwm8xcfwnz4/J4ONBc5PSFmUytTWpzEnxb0bfUNLuYloIS24V6OZ8BfAhiYZ1AwySeJCQDM4Vk1V8IF6trTtyx5EW/uV9jsHCZ3LFsAD7UnFRTosIgN3SAK3ZWCEk5oF2IvjecsolEfkRXB3q9EjMkkuXRUeFDH2lWJLgNE27BzY6myvZVzPmfwZUsPBlPD/6w+WLSp97Rjgr9zS3T1d4ddqFM4ZYu04f2i7a/UUQqG+itzzuX5DWLPvzuNt37JB45mB9IsvxPyXZ6SkAcLl48NGyKok1f3vQnvphkfkl4lni29woKhaau8xlsuEDrcwOoeAsVcZXiItg+l+z2SlIwM0A06EvQ=
35-
distributions: "sdist bdist_wheel"
21+
22+
stages:
23+
- test
24+
- name: deploy
25+
if: tag IS present
26+
27+
jobs:
28+
fast_finish: true
29+
include:
30+
- env: TOXENV=pre-commit
31+
python: 3.7
32+
- env: TOXENV=mypy
33+
python: 3.7
34+
- stage: deploy
35+
python: 3.7
36+
after_success: true
37+
deploy:
38+
provider: pypi
39+
user: syrusakbary
40+
on:
41+
tags: true
42+
password:
43+
secure: LHOp9DvYR+70vj4YVY8+JRNCKUOfYZREEUY3+4lMUpY7Zy5QwDfgEMXG64ybREH9dFldpUqVXRj53eeU3spfudSfh8NHkgqW7qihez2AhSnRc4dK6ooNfB+kLcSoJ4nUFGxdYImABc4V1hJvflGaUkTwDNYVxJF938bPaO797IvSbuI86llwqkvuK2Vegv9q/fy9sVGaF9VZIs4JgXwR5AyDR7FBArl+S84vWww4vTFD33hoE88VR4QvFY3/71BwRtQrnCMm7AOm31P9u29yi3bpzQpiOR2rHsgrsYdm597QzFKVxYwsmf9uAx2bpbSPy2WibunLePIvOFwm8xcfwnz4/J4ONBc5PSFmUytTWpzEnxb0bfUNLuYloIS24V6OZ8BfAhiYZ1AwySeJCQDM4Vk1V8IF6trTtyx5EW/uV9jsHCZ3LFsAD7UnFRTosIgN3SAK3ZWCEk5oF2IvjecsolEfkRXB3q9EjMkkuXRUeFDH2lWJLgNE27BzY6myvZVzPmfwZUsPBlPD/6w+WLSp97Rjgr9zS3T1d4ddqFM4ZYu04f2i7a/UUQqG+itzzuX5DWLPvzuNt37JB45mB9IsvxPyXZ6SkAcLl48NGyKok1f3vQnvphkfkl4lni29woKhaau8xlsuEDrcwOoeAsVcZXiItg+l+z2SlIwM0A06EvQ=
44+
distributions: "sdist bdist_wheel"

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ commands =
1414
py{36,37}: py.test --cov=graphene graphene examples tests_asyncio tests_py36 {posargs}
1515

1616
[testenv:pre-commit]
17-
basepython=python3.6
17+
basepython=python3.7
1818
deps =
1919
pre-commit>0.12.0
2020
setenv =
@@ -23,7 +23,7 @@ commands =
2323
pre-commit {posargs:run --all-files}
2424

2525
[testenv:mypy]
26-
basepython=python3.6
26+
basepython=python3.7
2727
deps =
2828
mypy
2929
commands =

0 commit comments

Comments
 (0)