-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
34 lines (34 loc) · 946 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
language: python
dist: bionic
cache:
pip: true
directories:
- /usr/local/bin
- /usr/local/lib/python$TRAVIS_PYTHON_VERSION/site-packages
python:
- '3.6'
- '3.7'
- '3.8'
- 'nightly'
install:
- pip install pipenv
- python3 setup.py install
- pipenv install --dev --system
script:
- flake8 --verbose apertium
- mypy apertium --strict --any-exprs-report .mypy_coverage --ignore-missing-imports;
cat .mypy_coverage/any-exprs.txt;
coverage=$(tail -1 .mypy_coverage/any-exprs.txt | grep -Eo '[0-9\.]+%' | sed 's/%$//');
if (( $(echo "$coverage < 95" | bc -l) )); then
exit 1;
fi;
- coverage run -m unittest --verbose --buffer tests
- coverage report --show-missing --fail-under 90 --include 'apertium/**'
after_success:
- coveralls
notifications:
on_failure: change
on_success: change
matrix:
allow_failures:
- python: nightly