travis: check all xml files cppcheck generated during tests of htmlreport via xmllint as suggested in 'createrelease'.

This commit is contained in:
Matthias Krüger 2013-10-12 11:38:25 +02:00
parent a92e73dc18
commit 9d95200cb4
1 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,7 @@ script:
- make test SRCDIR=build VERIFY=1 -j 4
- ./cppcheck --error-exitcode=1 -Ilib --enable=style --suppress=duplicateBranch cli gui lib -igui/test
- sudo apt-get update
- sudo apt-get install python-pygments libqt4-core libqt4-gui libqt4-dev qt4-dev-tools qt4-qmake
- sudo apt-get install python-pygments libqt4-core libqt4-gui libqt4-dev qt4-dev-tools qt4-qmake libxml2-utils
- cd gui
- qmake
- make -j 4
@ -17,12 +17,16 @@ script:
- ./cppcheck-htmlreport --file ../gui/test/data/xmlfiles/xmlreport_v1.xml --title "xml1 test" --report-dir . --source-dir ../test/
- ./cppcheck-htmlreport --file ../gui/test/data/xmlfiles/xmlreport_v2.xml --title "xml2 test" --report-dir . --source-dir ../test/
- ../cppcheck ../gui/test --enable=all --inconclusive --xml-version=2 2> gui_test.xml
- xmllint --noout gui_test.xml
- ./cppcheck-htmlreport --file ./gui_test.xml --title "xml2 + inconclusive test" --report-dir .
- ../cppcheck ../gui/test --enable=all --inconclusive --verbose --xml-version=2 2> gui_test.xml
- xmllint --noout gui_test.xml
- ./cppcheck-htmlreport --file ./gui_test.xml --title "xml2 + inconclusive + verbose test" --report-dir .
- ../cppcheck --errorlist > errorlist.xml
- xmllint --noout errorlist.xml
- ./cppcheck-htmlreport --file ./errorlist.xml --title "errorlist" --report-dir .
- ../cppcheck --errorlist --inconclusive --xml-version=2 > errorlist.xml
- xmllint --noout errorlist.xml
- ./cppcheck-htmlreport --file ./errorlist.xml --title "errorlist" --report-dir .
- cd ../
- mkdir install_test