forked from gluetool/gluetool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (30 loc) · 1.04 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
language: python
# Paralellize by telling Travis what our matrix looks like - we reduce the actual command
# to just calling `tox` with a single environment, specified by `TOX_ENV`, which is set
# multiple times. Travis will take care of creating necessary threads.
matrix:
include:
- python: 2.7
env: TOX_ENV=py27-static-analysis
- python: 2.7
env: TOX_ENV=py27-unit-tests
- python: 3.6
env: TOX_ENV=py36-static-analysis
- python: 3.6
env: TOX_ENV=py36-unit-tests
- python: 3.7
env: TOX_ENV=py37-static-analysis
- python: 3.7
env: TOX_ENV=py37-unit-tests
- python: 3.8
env: TOX_ENV=py38-static-analysis
- python: 3.8
env: TOX_ENV=py38-unit-tests
# For type-check, we need Python 3 to power `mypy`. It's going to check types for both
# Python 3 *and* 2, therefore it's perfectly fine to run it just once.
- python: 3.6
env: TOX_ENV=type-check
install: pip install tox-travis
script:
- tox -e $TOX_ENV