mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-29 13:03:56 +03:00
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
This commit is contained in:
parent
ac6714e8fa
commit
0e8a3c5063
47
.travis.yml
47
.travis.yml
|
@ -1,30 +1,39 @@
|
||||||
language: python
|
language: python
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- env: TOXENV=py27
|
|
||||||
python: 2.7
|
|
||||||
- env: TOXENV=py35
|
|
||||||
python: 3.5
|
|
||||||
- env: TOXENV=py36
|
|
||||||
python: 3.6
|
|
||||||
- env: TOXENV=py37
|
|
||||||
python: 3.7
|
|
||||||
dist: xenial
|
dist: xenial
|
||||||
sudo: true
|
|
||||||
- env: TOXENV=pypy
|
python:
|
||||||
python: pypy-5.7.1
|
- "2.7"
|
||||||
- env: TOXENV=pre-commit
|
- "3.5"
|
||||||
python: 3.6
|
- "3.6"
|
||||||
- env: TOXENV=mypy
|
- "3.7"
|
||||||
python: 3.6
|
- "pypy3"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install coveralls tox
|
- pip install tox tox-travis
|
||||||
script: tox
|
script: tox
|
||||||
after_success: coveralls
|
after_success:
|
||||||
|
- pip install coveralls
|
||||||
|
- coveralls
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.cache/pip
|
- $HOME/.cache/pip
|
||||||
- $HOME/.cache/pre-commit
|
- $HOME/.cache/pre-commit
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- name: deploy
|
||||||
|
if: tag IS present
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
fast_finish: true
|
||||||
|
include:
|
||||||
|
- env: TOXENV=pre-commit
|
||||||
|
python: 3.7
|
||||||
|
- env: TOXENV=mypy
|
||||||
|
python: 3.7
|
||||||
|
- stage: deploy
|
||||||
|
python: 3.7
|
||||||
|
after_success: true
|
||||||
deploy:
|
deploy:
|
||||||
provider: pypi
|
provider: pypi
|
||||||
user: syrusakbary
|
user: syrusakbary
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -14,7 +14,7 @@ commands =
|
||||||
py{36,37}: py.test --cov=graphene graphene examples tests_asyncio tests_py36 {posargs}
|
py{36,37}: py.test --cov=graphene graphene examples tests_asyncio tests_py36 {posargs}
|
||||||
|
|
||||||
[testenv:pre-commit]
|
[testenv:pre-commit]
|
||||||
basepython=python3.6
|
basepython=python3.7
|
||||||
deps =
|
deps =
|
||||||
pre-commit>0.12.0
|
pre-commit>0.12.0
|
||||||
setenv =
|
setenv =
|
||||||
|
@ -23,7 +23,7 @@ commands =
|
||||||
pre-commit {posargs:run --all-files}
|
pre-commit {posargs:run --all-files}
|
||||||
|
|
||||||
[testenv:mypy]
|
[testenv:mypy]
|
||||||
basepython=python3.6
|
basepython=python3.7
|
||||||
deps =
|
deps =
|
||||||
mypy
|
mypy
|
||||||
commands =
|
commands =
|
||||||
|
|
Loading…
Reference in New Issue
Block a user