-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
28 lines (28 loc) · 1003 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
dist: xenial
language: python
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "pypy3.5"
# command to install dependencies
install:
- pip install nose
- 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:
- python setup.py test
- pytest
- nosetests
- if [[ $TRAVIS_PYTHON_VERSION == '3.9' ]]; then coverage run -a tests/test_small.py; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.9' ]]; then coverage run -a tests/test_full.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