mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-08 05:34:51 +08:00
Add coveragerc and travis files.
This commit is contained in:
10
.coveragerc
Normal file
10
.coveragerc
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
[run]
|
||||||
|
|
||||||
|
[report]
|
||||||
|
# Regexes for lines to exclude from consideration
|
||||||
|
exclude_lines =
|
||||||
|
# Don't complain about missing debug-only code:
|
||||||
|
def __repr__
|
||||||
|
|
||||||
|
# Don't complain if non-runnable code isn't run:
|
||||||
|
if __name__ == .__main__.:
|
||||||
30
.travis.yml
Normal file
30
.travis.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
language: python
|
||||||
|
sudo: false
|
||||||
|
python:
|
||||||
|
- 2.6
|
||||||
|
- 2.7
|
||||||
|
- 3.3
|
||||||
|
- 3.4
|
||||||
|
- 3.5
|
||||||
|
- 3.6
|
||||||
|
- pypy
|
||||||
|
matrix:
|
||||||
|
allow_failures:
|
||||||
|
- python: pypy
|
||||||
|
- env: TOXENV=cov
|
||||||
|
- env: TOXENV=sith
|
||||||
|
include:
|
||||||
|
- python: 3.5
|
||||||
|
env: TOXENV=cov
|
||||||
|
- python: 3.5
|
||||||
|
env: TOXENV=sith
|
||||||
|
install:
|
||||||
|
- pip install --quiet tox-travis
|
||||||
|
script:
|
||||||
|
- tox
|
||||||
|
after_script:
|
||||||
|
- if [ $TOXENV == "cov" ]; then
|
||||||
|
pip install --quiet coveralls;
|
||||||
|
coveralls;
|
||||||
|
fi
|
||||||
|
|
||||||
Reference in New Issue
Block a user