Commit Graph

50 Commits

Author SHA1 Message Date
Matthias Krüger 9d44062f7f travis: check kernel as part of travis testing.
add 2 more jobs (one for gcc, one for clang) which only compile Cppcheck with opimization CXXFLAGS to afterwards check a fixed version of the linux kernel to see if cppcheck crashes.
2014-03-16 11:26:53 +01:00
Matthias Krüger 685e44fb85 travis: add gdb as dependency, it is used for cppcheck-gui.
former output:

{ test -n "" && DESTDIR="" || DESTDIR=.; } && test $(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72
&& gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $DESTDIR" -ex quit 'cppcheck-gui' && test -f
cppcheck-gui.gdb-index && objcopy --add-section '.gdb_index=cppcheck-gui.gdb-index' --set-section-flags '.gdb_index=readonly'
'cppcheck-gui' 'cppcheck-gui' && rm -f cppcheck-gui.gdb-index || true
/bin/sh: 1: gdb: not found
/bin/sh: 1: test: -gt: unexpected operator
2014-03-03 10:19:26 +01:00
Matthias Krüger 0866feaf17 travis: compile with -Wunreachable-code . 2014-02-27 16:23:55 +01:00
Matthias Krüger 4c9218981f travis: sent out build failure notification as soon as the first job fails using matrix: fast_finish: true 2014-01-17 20:46:20 +01:00
Matthias Krüger edf44d2509 travis: check the repo with cppcheck after building gui. 2014-01-12 22:47:21 +01:00
Matthias Krüger e1a5487c70 travis: let cppcheck check most of the repo, but suppress files/warnings that we don't care about via suppression file. 2014-01-12 22:47:21 +01:00
Matthias Krüger 73b7276ae9 travis: fail if Makefile is not up to date (check via dmake). 2014-01-12 22:47:21 +01:00
Matthias Krüger e049a44f63 travis: check cfg files with xmllint. 2014-01-12 22:47:21 +01:00
Matthias Krüger 21a2c4e468 travis: also check "test" directory while ignoring test.cxx 2014-01-12 22:47:21 +01:00
Matthias Krüger 8ae3df3249 travis: use suppression list to suppress warnings. 2014-01-12 22:47:21 +01:00
Matthias Krüger 0cfd60aa34 travis: rewrite config file.
Uses CXXFLAGS -O2 instead of default flags to speed up self checking.

Testing is done with the following settings:

1) gcc    CXXFLAGS=-O2
2) gcc    CXXFLAGS=-O2  SRCDIR=build VERIFY=1
3) gcc    CXXFLAGS=-O2  MAKEFLAGS="HAVE_RULES=yes"
4) gcc    CXXFLAGS=-O2  SRCDIR=build VERIFY=1  MAKEFLAGS="HAVE_RULES=yes"
5) clang  CXXFLAGS=-O2
6) clang  CXXFLAGS=-O2  SRCDIR=build VERIFY=1
7) clang  CXXFLAGS=-O2  MAKEFLAGS="HAVE_RULES=yes"
8) clang  CXXFLAGS=-O2  SRCDIR=build VERIFY=1  MAKEFLAGS="HAVE_RULES=yes"

Changes made to before_install:
installe libpcre3

Changes made to script:
* make and make test are now called seperately
* cppcheck also checks "build" folder (created by SRCDIR=build) if existing.
* gui is built twice, one time with HAVE_RULES=yes as qmake argument and one time without it.
* a script has been added and run which returns false if cppcheck --showtime=top5 does not return 7 lines indicating that something is broken
2014-01-12 22:47:21 +01:00
Matthias Krüger ec2f0a0622 travis: compile "reduce" tool as well. 2014-01-02 10:51:18 +01:00
Matthias Krüger aa4ab4a514 travis: install cppcheck syswide to check if CFGDIR and SRCDIR=build work. 2013-12-31 15:21:45 +01:00
Matthias Krüger 8397d99370 travis: move htmlreport checks into /htmlreport/checks.sh and make travis run it. 2013-10-12 15:49:42 +02:00
Matthias Krüger 7c1f6ab9dc travis: install deps as suggested by travis manual (via before_install) 2013-10-12 15:09:45 +02:00
Matthias Krüger 9d95200cb4 travis: check all xml files cppcheck generated during tests of htmlreport via xmllint as suggested in 'createrelease'. 2013-10-12 15:09:45 +02:00
Matthias Krüger a92e73dc18 travis: check htmlreport via --errorlist output 2013-10-12 15:09:45 +02:00
Steven Myint 18402bf673 Fix Travis tests
This fixes a bug introduced in #180.
2013-10-11 23:43:07 -07:00
Matthias Krüger 38290120c9 travis: add another check for xml2 + inconclusive + verbose. 2013-10-09 01:58:37 +02:00
Matthias Krüger d552da76ff travis: check if cppcheck-htmlreport works with xml2 + --inconclusive output. 2013-10-09 01:51:56 +02:00
Daniel Marjamäki 9dfb950776 Merge pull request #178 from matthiaskrgr/make_install
Make install: install cppcheck-htmlreport and cppcheck-gui (if binary is compiled), make travis also perform make install.
2013-10-08 11:43:57 -07:00
Matthias Krüger 891a85a553 travis: also check "make install" 2013-10-08 19:33:36 +02:00
Matthias Krüger ee1d37d100 travis: use -j 4 to build cppcheck, the testrunner and cppcheck-gui. 2013-10-08 19:25:12 +02:00
Daniel Marjamäki 9271286425 Merge pull request #175 from matthiaskrgr/htmlreport
mention --help in cppcheck-htmlreport readme & implement 2 tests for it into travis
2013-10-07 10:32:48 -07:00
Matthias Krüger 1cbc8a5d6d travis: build cppcheck-gui 2013-10-07 16:58:53 +02:00
Matthias Krüger 717680fdd9 travis: run cppcheck-htmlreport on 2 xml files as test. 2013-10-07 16:15:21 +02:00
Daniel Marjamäki a0015fc2f4 Travis: remove -q flag. It may avoid a timeout. 2013-10-07 16:00:26 +02:00
Steven Myint 6ad30a1c69 Handle "--xml-version=2"
This also adds "test_htmlreport.py" to the Travis CI tests.
2013-10-06 13:34:48 -07:00
Daniel Marjamäki fe21f6f532 Travis: Run tests and checks with --verify 2013-05-15 13:25:17 +02:00
Daniel Marjamäki 0052abf527 Travis: set notifications 2013-02-11 19:32:53 +01:00
Daniel Marjamäki 624f2c7aca Travis: Use SRCDIR instead of LIBDIR 2012-12-12 18:46:08 +01:00
Daniel Marjamäki 0f1e150386 Travis: Run 'make test' with compiled patterns 2012-12-08 07:43:07 +01:00
Daniel Marjamäki 599642d5a9 Reverted last revert again.. still not working 2012-12-04 23:47:09 +01:00
Daniel Marjamäki a69329a69b Revert "Reverted travis update. It doesn't work for some reason."
This reverts commit 301a5527f5.
2012-12-04 23:39:09 +01:00
Daniel Marjamäki 301a5527f5 Reverted travis update. It doesn't work for some reason. 2012-12-04 23:21:25 +01:00
Daniel Marjamäki 3724ce8e8e Travis: Add testing of matchcompiler 2012-12-04 23:00:56 +01:00
Daniel Marjamäki 0115bb8d24 Fixed #4102 (False positive: 'find('=') + 1U' can't be replaced with compare) 2012-10-07 12:43:14 +02:00
Daniel Marjamäki a64669b1ec Fixed #4203 (Don't warn about setting NULL value for pointers and not using that value) 2012-09-30 17:22:35 +02:00
Daniel Marjamäki 7753258eca reverted my change 7852b7e8 2012-09-15 21:13:31 +02:00
Daniel Marjamäki a5854ac0c9 Travis : added -Ilib after suggestion from edward-san 2012-09-15 19:01:50 +02:00
Daniel Marjamäki 68f7c7c5d2 Travis : suppress false positive 2012-09-15 16:24:18 +02:00
Daniel Marjamäki 02969f665b Travis: Use more checks in the self-check 2012-09-15 16:16:24 +02:00
myint 8c577800b1 Use CXX instead of g++
CXX resolves to the compiler Travis is using.

Also use separate lines instead of "&&". Travis will stop on the first
failure automatically.
2012-09-05 21:22:16 +02:00
Daniel Marjamäki 516232e35f Travis: Enable clang compiler 2012-09-05 06:45:39 +02:00
Daniel Marjamäki 318d80be08 Travis: Fixed compile error, make sure Cppcheck exits with code 1 if error is found 2012-09-03 07:45:57 +02:00
Daniel Marjamäki 76a13c699d Travis: simplified build 2012-09-03 07:02:36 +02:00
Daniel Marjamäki 9278cdc41c Travis: Speedup. don't write so much information 2012-09-02 19:54:28 +02:00
Daniel Marjamäki c9b2174dea Travis: Added simple self-check. Only errors are detected for now 2012-09-02 17:12:37 +02:00
Daniel Marjamäki 7d02a68e5e Travis: build tests also 2012-09-02 11:47:06 +02:00
Daniel Marjamäki 46590086f9 Travis: Added simple configuration 2012-09-02 11:37:18 +02:00