-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
43 lines (36 loc) · 1.07 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
43
language: python
dist: xenial # required for Python 3.7
sudo: true # required for Python 3.7
python:
- 3.7
matrix:
allow_failures:
- 3.7
services:
- mongodb
- redis-server
install:
- pip install -U pip setuptools
- pip install -U -r dev-requirements.txt
# trying to include unreleased fixes for pylint in combination w. Python 3.7
- pip install --pre -U pylint astroid
- pip install --editable .
- cd tests && pybabel compile -d ./translations && cd ..
script:
#- python setup.py test
- coverage run -m pytest ./tests
#- pytest tests/ -v --capture=no
- pylint --rcfile=./pylintrc appkernel
- flake8 ./appkernel --show-source --statistics --count
after_script:
# show an overall report, including the tests
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- codecov
before_deploy:
- python setup.py build -vf
# deploy:
# - provider: pypi
# user: $REPO_USER
# password: $REPO_PASS
# distributions: "bdist_wheel sdist"