2012-09-02 11:37:18 +02:00
|
|
|
language: cpp
|
|
|
|
compiler:
|
|
|
|
- gcc
|
2012-09-05 06:45:39 +02:00
|
|
|
- clang
|
2013-10-12 12:40:20 +02:00
|
|
|
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
|
2012-09-05 07:22:49 +02:00
|
|
|
script:
|
2012-12-08 07:43:07 +01:00
|
|
|
- mkdir build
|
2013-10-08 19:25:12 +02:00
|
|
|
- make test SRCDIR=build VERIFY=1 -j 4
|
2013-10-07 16:00:26 +02:00
|
|
|
- ./cppcheck --error-exitcode=1 -Ilib --enable=style --suppress=duplicateBranch cli gui lib -igui/test
|
2013-10-07 16:58:53 +02:00
|
|
|
- cd gui
|
|
|
|
- qmake
|
2013-10-08 19:25:12 +02:00
|
|
|
- make -j 4
|
2013-10-07 16:58:53 +02:00
|
|
|
- cd ../
|
2013-10-05 17:03:31 +02:00
|
|
|
- ./htmlreport/test_htmlreport.py
|
2013-10-07 16:15:21 +02:00
|
|
|
- cd htmlreport
|
2013-10-09 01:51:56 +02:00
|
|
|
- ./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
|
2013-10-12 11:38:25 +02:00
|
|
|
- xmllint --noout gui_test.xml
|
2013-10-12 08:43:07 +02:00
|
|
|
- ./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
|
2013-10-12 11:38:25 +02:00
|
|
|
- xmllint --noout gui_test.xml
|
2013-10-12 08:43:07 +02:00
|
|
|
- ./cppcheck-htmlreport --file ./gui_test.xml --title "xml2 + inconclusive + verbose test" --report-dir .
|
2013-10-12 11:25:54 +02:00
|
|
|
- ../cppcheck --errorlist > errorlist.xml
|
2013-10-12 11:38:25 +02:00
|
|
|
- xmllint --noout errorlist.xml
|
2013-10-12 11:25:54 +02:00
|
|
|
- ./cppcheck-htmlreport --file ./errorlist.xml --title "errorlist" --report-dir .
|
|
|
|
- ../cppcheck --errorlist --inconclusive --xml-version=2 > errorlist.xml
|
2013-10-12 11:38:25 +02:00
|
|
|
- xmllint --noout errorlist.xml
|
2013-10-12 11:25:54 +02:00
|
|
|
- ./cppcheck-htmlreport --file ./errorlist.xml --title "errorlist" --report-dir .
|
2013-10-07 16:15:21 +02:00
|
|
|
- cd ../
|
2013-10-07 21:38:03 +02:00
|
|
|
- mkdir install_test
|
|
|
|
- make DESTDIR=install_test install
|
2013-02-11 19:32:53 +01:00
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "irc.freenode.org#cppcheck"
|
|
|
|
template:
|
|
|
|
- "[%{commit} : %{author}] %{message}"
|
|
|
|
- "%{build_url}"
|
|
|
|
skip_join: true
|
2012-12-08 07:43:07 +01:00
|
|
|
|