Skip to content

Commit 4c51b89

Browse files
dbiebercopybara-github
authored andcommitted
Only run pytype on 2.7 and 3.7
PiperOrigin-RevId: 353259081 Change-Id: I410e5af3f280db6cb2780e2837977c725b21bb0f
1 parent fac1ea0 commit 4c51b89

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.travis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ script:
1919
- pip install ipython
2020
- python -m pytest # Now run the tests with IPython.
2121
- pylint fire --ignore=test_components_py3.py,parser_fuzz_test.py,console
22-
- if [[ $TRAVIS_PYTHON_VERSION != 3.4 && \
23-
$TRAVIS_PYTHON_VERSION != 3.5 ]]; then
22+
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 || \
23+
$TRAVIS_PYTHON_VERSION == 3.7 ]]; then
2424
pip install pytype;
2525
fi
2626
# Run type-checking, excluding files that define or use py3 features in py2.
@@ -29,8 +29,6 @@ script:
2929
fire/fire_test.py
3030
fire/inspectutils_test.py
3131
fire/test_components_py3.py;
32-
elif [[ $TRAVIS_PYTHON_VERSION != 3.4 && \
33-
$TRAVIS_PYTHON_VERSION != 3.5 && \
34-
$TRAVIS_PYTHON_VERSION != 3.9 ]]; then
32+
elif [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then
3533
pytype;
3634
fi

0 commit comments

Comments
 (0)