Skip to content

Commit 23232c0

Browse files
srittauJelleZijlstra
authored andcommitted
Simplify Travis-CI configuration (#3220)
This removes the indirection of setting environment variables to install and run tests. Also, use an explicit version for running mypy with typed-ast.
1 parent 95185fa commit 23232c0

File tree

1 file changed

+12
-22
lines changed

1 file changed

+12
-22
lines changed

.travis.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,24 @@ dist: bionic
22
language: python
33
python: 3.7
44

5-
matrix:
5+
jobs:
66
include:
77
- name: "pytype"
88
python: 3.6
9-
env:
10-
- TEST_CMD="./tests/pytype_test.py"
11-
- INSTALL="test"
9+
install: pip install -r requirements-tests-py3.txt
10+
script: ./tests/pytype_test.py
1211
- name: "mypy (typed-ast)"
13-
env:
14-
- TEST_CMD="./tests/mypy_test.py"
15-
- INSTALL="mypy"
12+
python: 3.7
13+
install: pip install -U git+git://github.com/python/mypy git+git://github.com/python/typed_ast
14+
script: ./tests/mypy_test.py
1615
- name: "mypy (ast)"
1716
python: 3.8-dev
18-
env:
19-
- TEST_CMD="./tests/mypy_test.py"
20-
- INSTALL="mypy"
17+
install: pip install -U git+git://github.com/python/mypy
18+
script: ./tests/mypy_test.py
2119
- name: "mypy self test"
22-
env: TEST_CMD="./tests/mypy_selftest.py"
20+
script: ./tests/mypy_selftest.py
2321
- name: "check file consistency"
24-
env: TEST_CMD="./tests/check_consistent.py"
22+
script: ./tests/check_consistent.py
2523
- name: "flake8"
26-
env:
27-
- TEST_CMD="flake8"
28-
- INSTALL="test"
29-
30-
install:
31-
- if [[ $INSTALL == 'test' ]]; then pip install -r requirements-tests-py3.txt; fi
32-
- if [[ $INSTALL == 'mypy' ]]; then pip install -U git+git://github.com/python/mypy git+git://github.com/python/typed_ast; fi
33-
34-
script:
35-
- $TEST_CMD
24+
install: pip install -r requirements-tests-py3.txt
25+
script: flake8

0 commit comments

Comments
 (0)