mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +03:00
Update travis and tox
This commit is contained in:
parent
96934c4614
commit
63740697f6
79
.travis.yml
79
.travis.yml
|
@ -1,58 +1,59 @@
|
||||||
language: python
|
language: python
|
||||||
sudo: required
|
cache: pip
|
||||||
dist: xenial
|
|
||||||
|
|
||||||
python:
|
|
||||||
- 2.7
|
|
||||||
- 3.4
|
|
||||||
- 3.5
|
|
||||||
- 3.6
|
|
||||||
- 3.7
|
|
||||||
|
|
||||||
env:
|
|
||||||
matrix:
|
|
||||||
- DJANGO=1.11
|
|
||||||
- DJANGO=2.1
|
|
||||||
- DJANGO=2.2
|
|
||||||
- DJANGO=master
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- TOX_ENV=py${TRAVIS_PYTHON_VERSION}-django${DJANGO}
|
- pip install tox tox-travis coveralls
|
||||||
- pip install tox
|
|
||||||
- tox -e $TOX_ENV --notest
|
|
||||||
script:
|
|
||||||
- tox -e $TOX_ENV
|
|
||||||
|
|
||||||
after_success:
|
script:
|
||||||
- tox -e $TOX_ENV -- pip install coveralls
|
- tox
|
||||||
- tox -e $TOX_ENV -- coveralls $COVERALLS_OPTION
|
|
||||||
|
after_success:
|
||||||
|
- pip install coveralls
|
||||||
|
- coveralls
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
- python: 3.5
|
|
||||||
script: tox -e lint
|
|
||||||
exclude:
|
|
||||||
- python: 2.7
|
- python: 2.7
|
||||||
|
env: DJANGO=1.11
|
||||||
|
|
||||||
|
- python: 3.5
|
||||||
|
env: DJANGO=1.11
|
||||||
|
- python: 3.5
|
||||||
|
env: DJANGO=2.0
|
||||||
|
- python: 3.5
|
||||||
env: DJANGO=2.1
|
env: DJANGO=2.1
|
||||||
- python: 2.7
|
- python: 3.5
|
||||||
env: DJANGO=2.2
|
env: DJANGO=2.2
|
||||||
- python: 2.7
|
|
||||||
env: DJANGO=master
|
|
||||||
- python: 3.4
|
|
||||||
env: DJANGO=2.1
|
|
||||||
- python: 3.4
|
|
||||||
env: DJANGO=2.2
|
|
||||||
- python: 3.4
|
|
||||||
env: DJANGO=master
|
|
||||||
- python: 3.5
|
- python: 3.5
|
||||||
env: DJANGO=master
|
env: DJANGO=master
|
||||||
- python: 3.7
|
|
||||||
env: DJANGO=1.10
|
- python: 3.6
|
||||||
|
env: DJANGO=1.11
|
||||||
|
- python: 3.6
|
||||||
|
env: DJANGO=2.0
|
||||||
|
- python: 3.6
|
||||||
|
env: DJANGO=2.1
|
||||||
|
- python: 3.6
|
||||||
|
env: DJANGO=2.2
|
||||||
|
- python: 3.6
|
||||||
|
env: DJANGO=master
|
||||||
|
|
||||||
- python: 3.7
|
- python: 3.7
|
||||||
env: DJANGO=1.11
|
env: DJANGO=1.11
|
||||||
allow_failures:
|
|
||||||
- python: 3.7
|
- python: 3.7
|
||||||
|
env: DJANGO=2.0
|
||||||
|
- python: 3.7
|
||||||
|
env: DJANGO=2.1
|
||||||
|
- python: 3.7
|
||||||
|
env: DJANGO=2.2
|
||||||
|
- python: 3.7
|
||||||
|
env: DJANGO=master
|
||||||
|
|
||||||
|
- python: 3.7
|
||||||
|
env: TOXENV=lint
|
||||||
|
|
||||||
|
allow_failures:
|
||||||
- env: DJANGO=master
|
- env: DJANGO=master
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
|
30
tox.ini
30
tox.ini
|
@ -1,26 +1,28 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py{2.7,3.4,3.5,3.6,3.7,pypy,pypy3}-django{1.10,1.11,2.0,2.1,2.2,master},lint
|
envlist =
|
||||||
|
py{27,35,36,37}-django{111,20,21,22,master},
|
||||||
|
lint
|
||||||
|
|
||||||
|
[travis:env]
|
||||||
|
DJANGO =
|
||||||
|
1.11: django111
|
||||||
|
2.0: django20
|
||||||
|
2.1: django21
|
||||||
|
2.2: django22
|
||||||
|
master: djangomaster
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
passenv = *
|
passenv = *
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
setenv =
|
setenv =
|
||||||
DJANGO_SETTINGS_MODULE=django_test_settings
|
DJANGO_SETTINGS_MODULE=django_test_settings
|
||||||
basepython =
|
|
||||||
py2.7: python2.7
|
|
||||||
py3.4: python3.4
|
|
||||||
py3.5: python3.5
|
|
||||||
py3.6: python3.6
|
|
||||||
py3.7: python3.7
|
|
||||||
pypypy: pypy
|
|
||||||
pypypy3: pypy3
|
|
||||||
deps =
|
deps =
|
||||||
-e.[test]
|
-e.[test]
|
||||||
psycopg2
|
psycopg2
|
||||||
django1.10: Django>=1.10,<1.11
|
django111: Django>=1.11,<2.0
|
||||||
django1.11: Django>=1.11,<1.12
|
django20: Django>=2.0,<2.1
|
||||||
django2.0: Django>=2.0
|
django21: Django>=2.1,<2.2
|
||||||
django2.1: Django>=2.1
|
django22: Django>=2.2,<3.0
|
||||||
djangomaster: https://github.com/django/django/archive/master.zip
|
djangomaster: https://github.com/django/django/archive/master.zip
|
||||||
commands = {posargs:py.test --cov=graphene_django graphene_django examples}
|
commands = {posargs:py.test --cov=graphene_django graphene_django examples}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user