Matthias Krüger
263582ddbd
travis: clang check: don't ignore test/Lexer/unicode.c, the file no longer crashes cppcheck.
2014-08-09 13:07:06 +02:00
Matthias Krüger
15a197eea6
travis: suppress current warnings, make cppcheck not crash the files in clang that crash currently.
2014-07-28 17:14:01 +02:00
Matthias Krüger
3c21acd1fa
travis: update clang repo hash
2014-07-28 16:48:56 +02:00
Matthias Krüger
b45bb821f2
travis: make clang check sensitive to internal cppcheck errors.
2014-07-28 16:48:56 +02:00
Matthias Krüger
f16524c9dd
travis: add -DCHECK_INTERNAL to the VERIFY=1 job to automatically fetch issues like #5869 via travis, check clang with --exception-handling
2014-07-28 16:48:56 +02:00
Matthias Krüger
0f2ba9e2da
travis: replace kernel check with clang check.
...
Check clang instead of kernel, which is a lot faster.
Make clang check failure fatal to the build.
2014-07-28 16:48:56 +02:00
Matthias Krüger
523b53100a
travis: check --dump
2014-07-14 20:17:40 +02:00
Matthias Krüger
b4630e03ab
travis: change build optimization level back to -O2 (from -O3) as discussed in
...
59077b06f9
2014-06-22 13:56:06 +02:00
Matthias Krüger
59077b06f9
travis: add -O3 -march=native -mtune=native to default CXXFLAGS
2014-06-18 19:30:32 +02:00
Matthias Krüger
cfd7279455
travis: run cppcheck with --exception-handling where it matters
2014-06-18 19:15:06 +02:00
Matthias Krüger
94c6fa1083
travis: move CHECK_INTERNAL check up, remove "SRCDIR=build VERIFY=1" job in favor of "MAKEFLAGS="HAVE_RULES=yes" SRCDIR=build VERIFY=1"
...
Conflicts:
.travis.yml
2014-06-18 19:14:25 +02:00
Matthias Krüger
1900e7b25f
travis: run test_matchcompiler.py
2014-06-18 19:08:27 +02:00
Matthias Krüger
97d27835fe
travis: kernel check: change crashgrepping regex to match potentially more crashes.
2014-06-05 11:35:13 +02:00
Matthias Krüger
879023b6b2
travis: compile one pair of jobs with -DCHECK_INTERNAL and run --enable=internal,...
...
suppress warnings in testtoken.cpp
fix warnings in valueflow
2014-05-19 21:44:00 +02:00
orbitcowboy
bd242c07eb
Fixed typo in travis script and tools/readme.md, no functional change.
2014-04-13 23:17:41 +02:00
Matthias Krüger
954f941bb4
travis: update to check latest major kernel version (3.14)
2014-04-03 16:56:31 +02:00
Matthias Krüger
4481015bdc
dmake: "make dmake" now also runs the binary after compilation.
2014-04-03 16:41:58 +02:00
Matthias Krüger
33965e9ab9
travis: first build with clang, then with gcc, move the kernel checking job to be the last job.
2014-03-23 20:47:27 +01:00
Matthias Krüger
06ea7145bb
travis: fix grep of cppcheck.cppcheck log checking cppcheck code for errors.
2014-03-18 17:36:52 +01:00
Matthias Krüger
24e1872772
travis: apply the same hack I used to work around broken exit status and kernel checking to cppcheck checking its own code (use -j2). Speeds up by around 3-4 minutes per affected job.
2014-03-18 01:58:43 +01:00
Matthias Krüger
841df2a6af
travis: allow failure of the kernel job. It sometimes times out when travis is on heavy load (which is a false positive).
2014-03-17 19:47:23 +01:00
Matthias Krüger
8e47235053
travis: remove hack to terminate clang kernel jobs early, instead avoid it properly.
2014-03-17 13:23:29 +01:00
Matthias Krüger
c799fe10f5
travis: remove HAVE_RULES=yes-only build. If we dealing with a clang job, abort the kernel checking, so we have basically only one compiler checking the kernel with cppcheck which should be enough.
2014-03-16 19:38:55 +01:00
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