sudo: false language: python cache: pip python: - "3.4" - "3.5" - "3.6" - "nightly" - "pypy3.3-5.2-alpha1" env: - TYPING_VERSION="<3.5.3" - TYPING_VERSION=">=3.5.3" matrix: allow_failures: - python: "nightly" include: - { python: "3.7", dist: xenial, sudo: true } install: - pip install pytest "typing$TYPING_VERSION" "pytest-cov>=2.5.1" # mypy can't be installed on pypy - if [[ "${TRAVIS_PYTHON_VERSION}" != "pypy"* ]] ; then pip install mypy ; fi script: - py.test -vv --cov=injector --cov-branch --cov-report html --cov-report term - if [[ "${TRAVIS_PYTHON_VERSION}" != "pypy"* ]] ; then mypy injector.py ; fi