Commit Graph

287 Commits

Author SHA1 Message Date
Matthias Krüger 547934b5a5 travis: use $CPPCHECK global containing absolute path to cppcheck executable 2018-05-13 12:32:14 +02:00
Matthias Krüger 1a1bb10511 travis: add misra tests to ci 2018-05-12 00:50:05 +02:00
Matthias Krüger 73a9f05a73 travis: update commits of the clang/llvm repo we are checking during CI
I had to reduce cppchecks stdout amount a bit and suppress unreadVariable warnings to not hit the 4MB log file limit on travis while checking llvm/clang.
2018-05-10 14:46:09 +02:00
Matthias Krüger ef574987d5 travis: also honor suppressions when checking cppcheck-gui code. 2018-04-27 13:10:42 +02:00
Daniel Marjamäki dffad3b3d1 Remove some more cxx11emu.h references 2018-04-10 06:52:33 +02:00
Daniel Marjamäki c987f88ebc Revert "Travis: use the generated cfg tests"
This reverts commit daa142ff25.
2018-03-19 21:45:31 +01:00
Daniel Marjamäki daa142ff25 Travis: use the generated cfg tests 2018-03-19 21:15:14 +01:00
Matthias Krüger f009cfc845 fix some typos found by codespell. 2018-02-04 20:53:43 +01:00
Daniel Marjamäki 81a7d759e4 Revert "travis: clang check: skip test/Analysis/padding_cpp.cpp because it generates ~700 kb of output on its own causing us to hit 4 megabyte output limit on travis."
This reverts commit fdb0d354ef.
2017-12-30 22:16:34 +01:00
Matthias Krüger fdb0d354ef travis: clang check: skip test/Analysis/padding_cpp.cpp because it generates ~700 kb of output on its own causing us to hit 4 megabyte output limit on travis. 2017-12-30 10:09:29 +01:00
Matthias Krüger ad9876d133 Revert "Travis: Reduce log size, hope this makes Travis happy"
This reverts commit 91f448966c.
2017-12-30 10:07:17 +01:00
Daniel Marjamäki 91f448966c Travis: Reduce log size, hope this makes Travis happy 2017-12-30 09:40:53 +01:00
Matthias Krüger 61ca480b85 travis: add an extra dmake job which will not fail the entire build if the makefile needs to be regenerated 2017-11-27 11:50:23 +01:00
Matthias Krüger 3a42e31cc3 travis: fix typo in previous commit I made to this file.
Thanks to @hexcoder- for pointing out!
2017-10-20 19:26:05 +02:00
Matthias Krüger db99eacbe9 travis: fail the entire job as soon as one of the run commands exits non-zero. 2017-10-19 22:44:52 +02:00
Daniel Marjamäki d22614bdaa Use cppcheck-lib.cfg in travis and during release 2017-10-10 12:29:22 +02:00
Daniel Marjamäki 702947c540 Revert "Travis: Add GUI tests"
This reverts commit 481853b65a.
2017-08-13 13:11:55 +02:00
Daniel Marjamäki 481853b65a Travis: Add GUI tests 2017-08-13 11:10:08 +02:00
Daniel Marjamäki cefb8bc71f Travis: Switch from qt4 to qt5 2017-07-31 07:12:17 +02:00
Daniel Marjamäki f9e5313dc9 Travis: Disable Misra tests for now 2017-07-29 10:41:24 +02:00
Matthias Krüger d13a8d6a32 travis: update from ubuntu precise to trusty
Unfortunately we have to disable htmlreport test due to pygments being unavailable.
2017-07-26 23:24:42 +02:00
Daniel Marjamäki 3d7265309b travis: Add 'make validateCFG' 2017-07-23 18:40:16 +02:00
Matthias Krüger cc4ea59b4a travis: invoke make with -s (silent) parameter to reduce stdout. 2017-06-06 22:54:16 +02:00
Matthias Krüger c185a8aae9 travis: add -Wstrict-aliasing=2 -Werror=strict-aliasing to CXXFLAGS 2017-06-05 23:10:28 +02:00
Matthias Krüger e3a751140c travis.yml: minor formatting change. NFC 2017-05-20 13:34:51 +02:00
Matthias Krüger eaaf6268a9 travis: make gui check the same as normal check but with qt settings and don't check gui twice. 2017-04-22 21:53:22 +02:00
Daniel Marjamäki 1a47c57aea Try to fix Travis 2017-04-22 21:33:20 +02:00
Daniel Marjamäki 06239907f1 Travis: Check GUI code 2017-04-22 19:44:07 +02:00
Daniel Marjamäki 0ba8885d89 Travis: Add misra test 2017-04-14 12:44:24 +02:00
Matthias Krüger 59b0c6f6b1 travis: self check: add missing include paths that cppcheck didn't find. 2017-04-09 17:28:19 +02:00
Daniel Marjamäki f67f2a2339 Travis: skip the addons folder when selfchecking 2017-04-09 08:50:05 +02:00
Matthias Krüger c16d82d729 travis: llvm check: unignore file that no longer crashes. 2017-04-07 14:56:07 +02:00
Matthias Krüger f8d8a96aa2 travis: another attempt to fix syntax. Apparently travis hates ':' inside strings... 2017-04-05 15:40:17 +02:00
Matthias Krüger c931a10294 travis: attempt to fix syntax error, change ' to ". 2017-04-05 14:37:23 +02:00
Matthias Krüger f8ba1e4c5d travis: clang/llvm check: print message id so we can fatalize found errors more easily. 2017-04-05 14:11:11 +02:00
Matthias Krüger d06ed9d5d0 travis: clang check: no longer need to ignore test/Analysis/new.cpp. 2017-04-04 00:09:34 +02:00
Matthias Krüger f7bfbee809 travis: put use gcc before clang 2017-04-02 19:33:46 +02:00
Matthias Krüger 349605eb41 travis: reorder jobs for faster execution (since several jobs are launched in parallel) 2017-04-02 19:25:31 +02:00
Matthias Krüger bea1310524 travis: llvm/clang check: compile these job swith clang instead of gcc for better performance 2017-04-02 19:24:24 +02:00
Matthias Krüger e21c3dc50a travis: llvm/clang check: ignore checking files with known crash (#7934) for now. 2017-04-02 18:49:45 +02:00
Matthias Krüger d54744b70e travis: update clang and llvm check
update clang and llvm hashes of the repos we check
move llvm-check and clang-check into seperate jobs to prevent exceeding 4 MB log size limit.
2017-03-26 12:52:46 +02:00
Matthias Krüger 0b3fe1807b travis: reenable original CXXFLAGS 2016-12-05 23:43:16 +01:00
Daniel Marjamäki 73d87856ce Travis: don't check that there are no errors in the synthetic tests 2016-11-02 12:16:41 +01:00
Daniel Marjamäki 3eef225b36 Revert preprocessor fix for struct tag macros. There are performance problems. 2016-07-19 18:59:58 +02:00
Daniel Marjamäki 4cc4ebd5cd Travis: run slow unit test on travis that is too slow to run on development machines 2016-07-19 17:10:49 +02:00
Matthias Krüger abccd9af95 travis: check llvm too, for greater coverage 2016-01-23 12:29:56 +01:00
Matthias Krüger b73090c351 travis: update checked clang version 2016-01-04 22:35:18 +01:00
Daniel Marjamäki b38559774d Removed the CPPCHECK2 ifdefs. I have no plan to remove simplifications anymore. 2015-12-28 16:26:51 +01:00
Matthias Krüger 073d5c1db4 travis: clang code check: skip test/Driver/Inputs/gen-response.c since it would make the build time out since 9a847d7. 2015-12-13 01:58:25 +01:00
Matthias Krüger f92c448d6e Revert "Adjust CXXFLAGS on travis"
This reverts commit 4ea9655685.
2015-11-10 20:44:24 +01:00
Alexander Mai 4ea9655685 Adjust CXXFLAGS on travis 2015-11-08 13:33:05 +01:00
Daniel Marjamäki 5b5cb63a64 Travis: Start to run some tests with the CPPCHECK2 define 2015-10-14 10:50:53 +02:00
Matthias Krüger 600a866983 travis: use "run-dmake" to run dmake 2015-10-07 23:52:39 +02:00
Daniel Marjamäki aab4ecc726 Revert "Travis: try to fix build problem by installing xml library"
This reverts commit f6e282f8c9.
2015-08-16 18:28:25 +02:00
Daniel Marjamäki f6e282f8c9 Travis: try to fix build problem by installing xml library 2015-08-16 17:59:41 +02:00
Matthias Krüger 7422366ebc travis: slightly simplify travis.yml 2015-07-31 15:33:27 +02:00
Matthias Krüger 7ee4579c83 travis: run generate_and_run_more_tests.sh after checking cppchecks internal sources 2015-07-22 13:32:44 +02:00
Daniel Marjamäki d02406a2ae Fix Travis script 2015-07-22 13:19:57 +02:00
Daniel Marjamäki bb95bc9fc5 Travis: run extra tests 2015-07-22 12:55:39 +02:00
Daniel Marjamäki a4d28458cd travis: use TEST_MATHLIB_VALUE define to test MathLib::value class 2015-07-16 11:14:58 +02:00
Matthias Krüger e56671101e tests: add a script which runs test/cfg tests.
add new make target (checkcfg) which builds cppcheck and executes the script
       make travis run checkcfg
2015-01-27 19:46:52 +01:00
Matthias Krüger 5fecd85a33 travis: do check clangs test/CXX/temp/temp.decls/temp.mem/p5.cpp 2015-01-18 14:19:02 +01:00
Matthias Krüger 8cf5765012 travis: update clang hash 2015-01-18 14:17:30 +01:00
Matthias Krüger 31d3aa9911 travis: clang: check test/CodeGenCXX/mangle-alias-template.cpp, it no longer makes cppcheck crash. 2014-08-27 00:09:28 +02:00
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
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