language: python
sudo: false
python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.5-dev"
  - "nightly"
  - "pypy"
  - "pypy3"
matrix:
  allow_failures:
    - python: "nightly"
      env: INJECTOR_VERSION="==0.9.0" FLASK_VERSION="==0.10"
    - python: "nightly"
      env: INJECTOR_VERSION="==0.9.0" FLASK_VERSION="==0.11"
    - python: "nightly"
      env: INJECTOR_VERSION="" FLASK_VERSION="==0.10"
    - python: "nightly"
      env: INJECTOR_VERSION="" FLASK_VERSION="==0.11"
env:
  - INJECTOR_VERSION="==0.9.0" FLASK_VERSION="==0.10"
  - INJECTOR_VERSION="==0.9.0" FLASK_VERSION="==0.11"
  - INJECTOR_VERSION="" FLASK_VERSION="==0.10"
  - INJECTOR_VERSION="" FLASK_VERSION="==0.11"
install:
  - pip install flake8 nose==1.3.0 flask$FLASK_VERSION flask_restful flask_restplus injector$INJECTOR_VERSION flask_cache flask_sqlalchemy eventlet
script:
  - make test

language: python
sudo: false
python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.5-dev"
  - "nightly"
  - "pypy"
  - "pypy3"
matrix:
  allow_failures:
    - python: "nightly"
      env: INJECTOR_VERSION="==0.9.0" FLASK_VERSION="==0.10"
    - python: "nightly"
      env: INJECTOR_VERSION="==0.9.0" FLASK_VERSION="==0.11"
    - python: "nightly"
      env: INJECTOR_VERSION="" FLASK_VERSION="==0.10"
    - python: "nightly"
      env: INJECTOR_VERSION="" FLASK_VERSION="==0.11"
    - python: "pypy3"
      env: INJECTOR_VERSION="==0.9.0" FLASK_VERSION="==0.11"
    - python: "pypy3"
      env: INJECTOR_VERSION="" FLASK_VERSION="==0.11"
env:
  - INJECTOR_VERSION="==0.9.0" FLASK_VERSION="==0.10"
  - INJECTOR_VERSION="==0.9.0" FLASK_VERSION="==0.11"
  - INJECTOR_VERSION="" FLASK_VERSION="==0.10"
  - INJECTOR_VERSION="" FLASK_VERSION="==0.11"
install:
  - pip install flake8 nose==1.3.0 flask$FLASK_VERSION flask_restful flask_restplus injector$INJECTOR_VERSION flask_cache flask_sqlalchemy eventlet
script:
  - make test

Allow PyPy 3/Flask 0.11 failures
Allow PyPy 3/Flask 0.11 failures

Flask 0.11 seems to be incompatible with the current PyPy 3:

Traceback (most recent call last):
  File "/home/travis/virtualenv/pypy3-2.4.0/site-packages/nose/failure.py", line 38, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/home/travis/virtualenv/pypy3-2.4.0/site-packages/nose/loader.py", line 413, in loadTestsFromName
    addr.filename, addr.module)
  File "/home/travis/virtualenv/pypy3-2.4.0/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/home/travis/virtualenv/pypy3-2.4.0/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/travis/build/alecthomas/flask_injector/flask_injector_tests.py", line 5, in <module>
    import flask_restful
  File "/home/travis/virtualenv/pypy3-2.4.0/site-packages/flask_restful/__init__.py", line 5, in <module>
    from flask import request, url_for, current_app
  File "/home/travis/virtualenv/pypy3-2.4.0/site-packages/flask/__init__.py", line 21, in <module>
    from .app import Flask, Request, Response
  File "/home/travis/virtualenv/pypy3-2.4.0/site-packages/flask/app.py", line 24, in <module>
    from .helpers import _PackageBoundObject, url_for, get_flashed_messages, \
  File "/home/travis/virtualenv/pypy3-2.4.0/site-packages/flask/helpers.py", line 42, in <module>
    from ._compat import string_types, text_type
  File "/home/travis/virtualenv/pypy3-2.4.0/site-packages/flask/_compat.py", line 82, in <module>
    raise AssertionError()
  File "/home/travis/virtualenv/pypy3-2.4.0/site-packages/flask/_compat.py", line 78, in __exit__
    sys.exc_clear()
AttributeError: 'module' object has no attribute 'exc_clear'

This patch is contributed by Smarkets Limited.
