-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
25 lines (25 loc) Β· 881 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
dist: xenial
language: python
python:
- 3.6
- 3.7
- 3.8
- 3.9
- 3.10-dev
- pypy3
# command to install dependencies
install:
- pip install -r tests/requirements.txt
- if [[ $TRAVIS_PYTHON_VERSION == '3.9' ]]; then pip install python-coveralls; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.9' ]]; then pip install coverage; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.9' ]]; then pip install codacy-coverage; fi
# command to run tests
script:
- pytest
- if [[ $TRAVIS_PYTHON_VERSION == '3.9' ]]; then coverage run -a tests/test_*.py; fi
# must be last (coverage will not track an installed module)
- python setup.py install
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == '3.9' ]]; then coveralls; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.9' ]]; then coverage xml; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.9' ]]; then python-codacy-coverage -r coverage.xml; fi