-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
49 lines (41 loc) · 925 Bytes
/
.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
43
44
45
46
47
48
49
language: python
stages:
- black
- mypy
# - pylint
- test
cache:
pip: true
directories:
- "$HOME/.cache/pypoetry"
- "$HOME/.cache/pre-commit"
install:
- pip install pip -U
- wget https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py
- python get-poetry.py --preview -y
- source $HOME/.poetry/env
- poetry install -v
- python -m spacy download en
script: pytest -q tests/
jobs:
include:
- python: "3.6"
- python: "3.7"
dist: xenial
- python: "3.7.1"
dist: xenial
- stage: Black
python: "3.6"
install:
- pip install pre-commit
- pre-commit install-hooks
script:
- pre-commit run --all-files
- stage: mypy
python: "3.6"
script:
- mypy spacy_readability --ignore-missing-imports
# - stage: pylint
# python: "3.6"
# script:
# - pylint spacy_readability