File tree Expand file tree Collapse file tree 2 files changed +8
-17
lines changed Expand file tree Collapse file tree 2 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -156,21 +156,20 @@ jobs:
156
156
- name : test htmlreport (standalone)
157
157
run : |
158
158
test/tools/htmlreport/test_htmlreport.py
159
- cd test/tools/htmlreport
160
- ./check.sh
161
- # Python 3.5 and 3.6 are excluded as they are not supported by setuptools-scm package for getting
162
- # package version
159
+ test/tools/htmlreport/check.sh
160
+
161
+ # Python 3.6 is excluded as it is not supported by setuptools-scm package for getting package version
163
162
- name : test htmlreport (pip)
164
- if : matrix.python-version != '3.5' && matrix.python-version != '3. 6'
163
+ if : matrix.python-version != '3.6'
165
164
run : |
166
165
python -m venv venv
167
166
source venv/bin/activate
168
167
python -m pip install -U pip
169
168
pip install ./htmlreport/
170
169
which cppcheck-htmlreport
171
170
PIP_PACKAGE_TEST=1 test/tools/htmlreport/test_htmlreport.py
172
- cd test/tools/htmlreport
173
- . /check.sh
171
+ # TODO: does not test the pip binary
172
+ test/tools/htmlreport /check.sh
174
173
175
174
- name : test reduce
176
175
run : |
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -ex
2
2
3
3
# Command for checking HTML syntax with HTML Tidy, see http://www.html-tidy.org/
4
- tidy_version=$( tidy --version)
5
-
6
- if [[ " $tidy_version " == * " 5.6.0" * ]] ; then
7
- # newer tidy (5.6.0) command, if using this it is not necessary to ignore warnings:
8
- tidy_cmd=' tidy -o /dev/null -eq --drop-empty-elements no'
9
- else
10
- # older tidy from 2009 (Ubuntu 16.04 Xenial comes with this old version):
11
- tidy_cmd=' tidy -o /dev/null -eq'
12
- fi
4
+ tidy_cmd=' tidy -o /dev/null -eq --drop-empty-elements no'
13
5
14
6
function validate_html {
15
7
if [ ! -f " $1 " ]; then
@@ -23,7 +15,7 @@ function validate_html {
23
15
}
24
16
25
17
if [ -z " $PYTHON " ]; then
26
- PYTHON=python
18
+ PYTHON=python3
27
19
fi
28
20
29
21
SCRIPT_DIR=" $( dirname ${BASH_SOURCE[0]} ) "
You can’t perform that action at this time.
0 commit comments