mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-01 04:52:21 +08:00
Refactor how test are run, add tests to exercise pytype (if installed) (#353)
This commit is contained in:
committed by
Guido van Rossum
parent
1c4662d2f3
commit
63cbe2dc3c
21
.travis.yml
21
.travis.yml
@@ -1,15 +1,18 @@
|
||||
sudo: false
|
||||
language: python
|
||||
python:
|
||||
- "3.5"
|
||||
# More versions later.
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- python: "3.5"
|
||||
env: TEST_CMD="./tests/mypy_test.py"
|
||||
- python: "2.7"
|
||||
env: TEST_CMD="./tests/pytype_test.py --num-parallel=4"
|
||||
|
||||
install:
|
||||
- pip install -U git+git://github.com/python/mypy
|
||||
# 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; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install -U git+git://github.com/google/pytype; fi
|
||||
|
||||
script:
|
||||
- ./runtests.py -p3.5
|
||||
- ./runtests.py -p3.4
|
||||
- ./runtests.py -p3.3
|
||||
- ./runtests.py -p3.2
|
||||
- ./runtests.py -p2.7
|
||||
- $TEST_CMD
|
||||
|
||||
|
||||
Reference in New Issue
Block a user