Skip to content

Commit c0bee70

Browse files
authored
Separate out the lint/static analysis run from unit tests in Travis. (kensho-technologies#134)
1 parent 427481b commit c0bee70

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

Diff for: .travis.yml

+20-11
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,33 @@
11
sudo: false
22
language: python
33
cache: pip
4-
python:
5-
- "2.7"
6-
- "3.6"
4+
dist: xenial
75
services:
86
- docker
97
install:
108
- pip install -r dev-requirements.txt
119
- pip install -e .
1210
before_script:
1311
- docker-compose up -d
14-
script:
15-
- ./scripts/copyright_line_check.sh
16-
- isort --check-only --verbose --recursive graphql_compiler/
17-
- flake8 --exclude **/snap_*.py graphql_compiler/
18-
- pydocstyle graphql_compiler/
19-
- pylint graphql_compiler/
20-
- bandit -r graphql_compiler/
21-
- py.test --cov=graphql_compiler graphql_compiler/tests
12+
matrix:
13+
include:
14+
- name: "Lint and static analysis"
15+
python: "3.6"
16+
script:
17+
- ./scripts/copyright_line_check.sh
18+
- isort --check-only --verbose --recursive graphql_compiler/
19+
- flake8 --exclude **/snap_*.py graphql_compiler/
20+
- pydocstyle graphql_compiler/
21+
- pylint graphql_compiler/
22+
- bandit -r graphql_compiler/
23+
- name: "Python 2.7 unit tests"
24+
python: "2.7"
25+
script:
26+
- py.test --cov=graphql_compiler graphql_compiler/tests
27+
- name: "Python 3.6 unit tests"
28+
python: "3.6"
29+
script:
30+
- py.test --cov=graphql_compiler graphql_compiler/tests
2231
after_success:
2332
- docker-compose down
2433
- coveralls

0 commit comments

Comments
 (0)