File tree Expand file tree Collapse file tree 4 files changed +22
-20
lines changed Expand file tree Collapse file tree 4 files changed +22
-20
lines changed Original file line number Diff line number Diff line change 1+ [run]
2+ branch = True
3+ source = html5lib
4+
5+ [paths]
6+ source =
7+ html5lib
8+ .tox/*/lib/python*/site-packages/html5lib
Original file line number Diff line number Diff line change 1717 - USE_OPTIONAL=true
1818 - USE_OPTIONAL=false
1919
20- matrix :
21- exclude :
22- - python : " 2.7"
23- env : USE_OPTIONAL=false
24- - python : " 3.4"
25- env : USE_OPTIONAL=false
26- include :
27- - python : " 2.7"
28- env : USE_OPTIONAL=false FLAKE=true
29- - python : " 3.4"
30- env : USE_OPTIONAL=false FLAKE=true
31-
3220before_install :
3321 - git submodule update --init --recursive
3422
3523install :
3624 - bash requirements-install.sh
3725
3826script :
39- - py.test
27+ - if [[ $TRAVIS_PYTHON_VERSION == pypy* ]]; then py.test; fi
28+ - if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coverage run -m pytest; fi
4029 - bash flake8-run.sh
4130
4231after_script :
4332 - python debug-info.py
33+
34+ after_success :
35+ - if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coverage combine && codecov; fi
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ if [[ ! -x $(which flake8) ]]; then
55 exit 1
66fi
77
8- if [[ $TRAVIS != " true" || $FLAKE == " true" ]]; then
9- find html5lib/ -name ' *.py' -and -not -name ' constants.py' -print0 | xargs -0 flake8 --ignore=E501
10- flake1=$?
11- flake8 --max-line-length=99 --ignore=E126 html5lib/constants.py
12- flake2=$?
13- exit $[$flake1 || $flake2 ]
14- fi
8+ find html5lib/ -name ' *.py' -and -not -name ' constants.py' -print0 | xargs -0 flake8 --ignore=E501
9+ flake1=$?
10+ flake8 --max-line-length=99 --ignore=E126 html5lib/constants.py
11+ flake2=$?
12+ exit $[$flake1 || $flake2 ]
Original file line number Diff line number Diff line change @@ -13,3 +13,7 @@ pip install -U -r requirements-test.txt
1313if [[ $USE_OPTIONAL == " true" ]]; then
1414 pip install -U -r requirements-optional.txt
1515fi
16+
17+ if [[ $CI == " true" ]]; then
18+ pip install -U codecov
19+ fi
You can’t perform that action at this time.
0 commit comments