language: python matrix: allow_failures: - os: osx include: - python: "2.7" os: linux - python: "3.5" os: linux - python: "3.6" os: linux - python: "3.7" os: linux - python: "3.8" os: linux - python: "pypy" os: linux - python: "pypy3.5" os: linux # Using 'sh' shim - python: "2.7" env: GITLINT_USE_SH_LIB=0 os: linux - python: "3.7" env: GITLINT_USE_SH_LIB=0 os: linux # Windows # Travis doesn't support python on windows yet: # https://travis-ci.community/t/python-support-on-windows # Unit tests are known to have issues on windows: https://github.com/jorisroovers/gitlint/issues/92 # For now, we just run a few simple sanity tests # - python: "3.7" # os: windows # script: # - pytest -rw -s gitlint\tests\test_cli.py::CLITests::test_lint # - gitlint --version # - gitlint install: - "pip install -r requirements.txt" - "pip install -r test-requirements.txt" script: - "./run_tests.sh" - "./run_tests.sh --integration" - "./run_tests.sh --build" - "./run_tests.sh --pep8" - "./run_tests.sh --lint" - "./run_tests.sh --git" after_success: - coveralls