Skip to content

Commit

Permalink
Test on apispec 0.x and 1
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Sep 12, 2018
1 parent 38a8d69 commit 9ec627c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ python:
- '3.6'

env:
- MARSHMALLOW_VERSION=2
- MARSHMALLOW_VERSION=3
matrix:
- MARSHMALLOW_VERSION=2 APISPEC_VERSION=0
- MARSHMALLOW_VERSION=2 APISPEC_VERSION=1
- MARSHMALLOW_VERSION=3 APISPEC_VERSION=0
- MARSHMALLOW_VERSION=3 APISPEC_VERSION=1

install:
- pip install tox
- pip install coveralls

script: tox -e $(echo py$TRAVIS_PYTHON_VERSION | tr -d .)-ma$MARSHMALLOW_VERSION
script: tox -e $(echo py$TRAVIS_PYTHON_VERSION | tr -d .)-ma$MARSHMALLOW_VERSION-apispec$APISPEC_VERSION

after_success:
- coveralls --verbose
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = {py35,py36}-{ma2,ma3}
envlist = {py35,py36}-{ma2,ma3}-{apispec0,apispec1}

[testenv]
deps =
Expand All @@ -8,6 +8,8 @@ deps =
pytest-cov>=2.4.0
ma2: marshmallow>=2.15.0,<3.0.0
ma3: marshmallow>=3.0.0b13
apispec0: apispec>=0.39.0,<1.0.0
apispec1: apispec>=1.0.0b2
commands =
flake8 .
py.test --cov=flask_rest_api tests

0 comments on commit 9ec627c

Please sign in to comment.