Merge pull request #182 from matthiaskrgr/travis
Travis check --errorlist output via htmlreport, check xml output via xmllint
This commit is contained in:
commit
b6c405ef21
12
.travis.yml
12
.travis.yml
|
@ -2,24 +2,20 @@ language: cpp
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
- clang
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get update -qq
|
||||||
|
- sudo apt-get install -qq python-pygments libqt4-core libqt4-gui libqt4-dev qt4-dev-tools qt4-qmake libxml2-utils
|
||||||
script:
|
script:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- make test SRCDIR=build VERIFY=1 -j 4
|
- make test SRCDIR=build VERIFY=1 -j 4
|
||||||
- ./cppcheck --error-exitcode=1 -Ilib --enable=style --suppress=duplicateBranch cli gui lib -igui/test
|
- ./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
|
|
||||||
- cd gui
|
- cd gui
|
||||||
- qmake
|
- qmake
|
||||||
- make -j 4
|
- make -j 4
|
||||||
- cd ../
|
- cd ../
|
||||||
- ./htmlreport/test_htmlreport.py
|
- ./htmlreport/test_htmlreport.py
|
||||||
- cd htmlreport
|
- cd htmlreport
|
||||||
- ./cppcheck-htmlreport --file ../gui/test/data/xmlfiles/xmlreport_v1.xml --title "xml1 test" --report-dir . --source-dir ../test/
|
- ./check.sh
|
||||||
- ./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
|
|
||||||
- ./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
|
|
||||||
- ./cppcheck-htmlreport --file ./gui_test.xml --title "xml2 + inconclusive + verbose test" --report-dir .
|
|
||||||
- cd ../
|
- cd ../
|
||||||
- mkdir install_test
|
- mkdir install_test
|
||||||
- make DESTDIR=install_test install
|
- make DESTDIR=install_test install
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash -ex
|
||||||
|
|
||||||
|
|
||||||
|
./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/
|
||||||
|
echo -e "\n"
|
||||||
|
|
||||||
|
|
||||||
|
../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 .
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
../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 .
|
||||||
|
echo -e "\n"
|
||||||
|
|
||||||
|
|
||||||
|
../cppcheck --errorlist > errorlist.xml
|
||||||
|
xmllint --noout errorlist.xml
|
||||||
|
./cppcheck-htmlreport --file ./errorlist.xml --title "errorlist" --report-dir .
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
../cppcheck --errorlist --inconclusive --xml-version=2 > errorlist.xml
|
||||||
|
xmllint --noout errorlist.xml
|
||||||
|
./cppcheck-htmlreport --file ./errorlist.xml --title "errorlist" --report-dir .
|
Loading…
Reference in New Issue