File tree 4 files changed +22
-20
lines changed
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 17
17
- USE_OPTIONAL=true
18
18
- USE_OPTIONAL=false
19
19
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
-
32
20
before_install :
33
21
- git submodule update --init --recursive
34
22
35
23
install :
36
24
- bash requirements-install.sh
37
25
38
26
script :
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
40
29
- bash flake8-run.sh
41
30
42
31
after_script :
43
32
- 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
5
5
exit 1
6
6
fi
7
7
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
13
13
if [[ $USE_OPTIONAL == " true" ]]; then
14
14
pip install -U -r requirements-optional.txt
15
15
fi
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