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
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