Skip to content

Commit

Permalink
Merge 2199e92 into 96934c4
Browse files Browse the repository at this point in the history
  • Loading branch information
jkimbo committed Jun 10, 2019
2 parents 96934c4 + 2199e92 commit cc2f175
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 56 deletions.
74 changes: 37 additions & 37 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
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:
- TOX_ENV=py${TRAVIS_PYTHON_VERSION}-django${DJANGO}
- pip install tox
- tox -e $TOX_ENV --notest
script:
- tox -e $TOX_ENV
- pip install tox tox-travis

after_success:
- tox -e $TOX_ENV -- pip install coveralls
- tox -e $TOX_ENV -- coveralls $COVERALLS_OPTION
script:
- tox

after_success:
- pip install coveralls
- coveralls

matrix:
fast_finish: true
include:
- python: 3.5
script: tox -e lint
exclude:
- 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
- python: 2.7
- python: 3.5
env: DJANGO=2.2
- python: 2.7
env: DJANGO=master
- python: 3.4

- python: 3.6
env: DJANGO=1.11
- python: 3.6
env: DJANGO=2.0
- python: 3.6
env: DJANGO=2.1
- python: 3.4
- python: 3.6
env: DJANGO=2.2
- python: 3.4
- python: 3.6
env: DJANGO=master
- python: 3.5
env: DJANGO=master
- python: 3.7
env: DJANGO=1.10

- python: 3.7
env: DJANGO=1.11
allow_failures:
- 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=flake8

allow_failures:
- env: DJANGO=master

deploy:
Expand Down
46 changes: 27 additions & 19 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,31 +1,39 @@
[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},
black,flake8

[travis:env]
DJANGO =
1.11: django111
2.0: django20
2.1: django21
2.2: django22
master: djangomaster

[testenv]
passenv = *
usedevelop = True
setenv =
setenv =
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 =
-e.[test]
psycopg2
django1.10: Django>=1.10,<1.11
django1.11: Django>=1.11,<1.12
django2.0: Django>=2.0
django2.1: Django>=2.1
django111: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2,<3.0
djangomaster: https://github.com/django/django/archive/master.zip
commands = {posargs:py.test --cov=graphene_django graphene_django examples}

[testenv:lint]
basepython = python
deps =
prospector
commands = prospector graphene_django -0
[testenv:black]
basepython = python3.7
deps = black
commands =
black --exclude "/migrations/" graphene_django examples --check

[testenv:flake8]
basepython = python3.7
deps = flake8
commands =
flake8 graphene_django examples

0 comments on commit cc2f175

Please sign in to comment.