mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-17 15:24:14 +08:00
modify pytype_test to run from within pytype too, and support python3 (#1817)
This commit is contained in:
committed by
Matthias Kramm
parent
c2fa0a153a
commit
754789b031
@@ -11,12 +11,13 @@ matrix:
|
||||
env: TEST_CMD="./tests/mypy_test.py --no-implicit-optional"
|
||||
- python: "2.7"
|
||||
env: TEST_CMD="./tests/pytype_test.py --num-parallel=4"
|
||||
sudo: true
|
||||
|
||||
install:
|
||||
# pytype needs py-2.7, mypy needs py-3.3+. Additional logic in runtests.py
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '3.6-dev' ]]; then pip install -U flake8==3.3.0 flake8-bugbear>=17.3.0 flake8-pyi>=17.1.0; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then pip install -U git+git://github.com/python/mypy git+git://github.com/python/typed_ast; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install -U git+git://github.com/google/pytype; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install -U git+git://github.com/google/pytype; wget https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/14.04/x86_64/python-3.6.tar.bz2; sudo tar xjf python-3.6.tar.bz2 --directory /; fi
|
||||
|
||||
script:
|
||||
- $TEST_CMD
|
||||
|
||||
Reference in New Issue
Block a user