mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
20 lines
658 B
YAML
20 lines
658 B
YAML
sudo: false
|
|
language: python
|
|
|
|
matrix:
|
|
include:
|
|
- python: "3.5"
|
|
env: TEST_CMD="flake8"
|
|
- python: "3.5"
|
|
env: TEST_CMD="./tests/mypy_test.py"
|
|
- python: "2.7"
|
|
env: TEST_CMD="./tests/pytype_test.py --num-parallel=4"
|
|
|
|
install:
|
|
# pytype needs py-2.7, mypy needs py-3.2+. Additional logic in runtests.py
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then pip install -U git+git://github.com/python/mypy git+git://github.com/dropbox/typed_ast flake8==3.2.1 flake8-bugbear>=16.12.2 flake8-pyi>=16.12.1; fi
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install -U git+git://github.com/google/pytype; fi
|
|
|
|
script:
|
|
- $TEST_CMD
|