forked from prompt-toolkit/python-prompt-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (25 loc) · 637 Bytes
/
.travis.yml
File metadata and controls
32 lines (25 loc) · 637 Bytes
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
sudo: false
cache: pip
language: python
matrix:
include:
- python: 3.7
dist: xenial
sudo: required
- python: 3.6
install:
- pip install . pytest coverage codecov flake8 mypy
- pip install isort black
- pip list
script:
- echo "$TRAVIS_PYTHON_VERSION"
- flake8 prompt_toolkit
- coverage run -m pytest
# Run type checker.
- mypy prompt_toolkit
# Check wheather the imports were sorted correctly.
# When this fails, please run ./tools/sort-imports.sh
- isort -c -rc prompt_toolkit examples tests setup.py
- black --check prompt_toolkit examples tests setup.py
after_success:
- codecov