blob: bd6cec56fb89708ea716f9e7b28e269f535ca156 [file] [log] [blame]
# https://travis-ci.org/pytorch/pytorch
language: python
dist: trusty
git:
submodules: false
# This reportedly works around an issue downloading packages from pypi on
# travis. Consider removing this after the underlying issue is fixed.
# https://github.com/travis-ci/travis-ci/issues/2389
sudo: false
matrix:
fast_finish: true
include:
- env: LINT_CHECK
python: "2.7"
install: pip install flake8
script: flake8
- env: LINT_CHECK
python: "3.7"
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
install: pip install flake8
script: flake8
- env: MYPY_TYPE_CHECK
python: "3.6"
install: pip install mypy mypy-extensions
script: mypy @mypy-files.txt