Commit Graph

166 Commits

Author SHA1 Message Date
Matthias Krüger 6eca26a4cf travis: add job making sure cppcheck builds on ubuntu precise (12.04) with gcc and clang 2019-01-12 21:09:04 +01:00
Daniel Marjamäki e6edd74099 Temporarily suppress Cppcheck false positives 2019-01-12 19:11:44 +01:00
Matthias Krüger c334d959ce travis: dmake job: don't redundatly install ubuntu packages 2019-01-12 13:22:54 +01:00
Sebastian 1042208c2c
triage: Fix warnings and Windows issues; some enhancements (#1591)
Changes:
- Fixed compiler warnings
- Add "*.*" to file open menu so files without suffix can be opened
- Make it work under Windows
- Make wget() and unpackArchive() methods so they can access the UI
- wget() and unpackArchive() use the new method runProcess() now that also does some error handling
- Errors are shown in the status bar for easier debugging / usage
- Add readme.txt
- Let travis build the triage tool
2019-01-12 09:16:43 +01:00
Matthias Krüger 63d9144f60 travis: refactor config, spawn llvm, clang and dmake jobs directly and remove env var hacks. (#1565)
* travis: refactor config, spawn llvm, clang and dmake jobs directly and remove env var hacks.
* travis: make sure cxxflags of travis match those in the makefile
* travis: move tests that run independant of CXXFLAGS into their own job
2019-01-09 09:54:46 +01:00
amai2012 cc4ca7525a
Clean up redundant actions in travis jobs (#1563)
* Clean up redundant actions in travis jobs.
* Drop validatePlatforms from Makefile target checkcfg
* Print out CPU count. Adjust parameters for parallel jobs to 2 - the current result.
2019-01-05 11:12:32 +01:00
amai2012 c10db6c73b
Try to run CMake (#1555) 2019-01-02 00:01:15 +01:00
Matthias Krüger b5e83d03fe travis: remove "sudo required" as it is being deprecated. 2018-11-24 12:51:33 +01:00
Daniel Marjamäki 1048aa8ead Disable Wshadow warnings
[ci skip]
2018-11-23 22:34:21 +01:00
Daniel Marjamäki 1fd7ea91e0 Revert "travis: reduce log output when checking clang"
This reverts commit 8efa405552.
2018-11-19 15:11:59 +01:00
Daniel Marjamäki 8efa405552 travis: reduce log output when checking clang 2018-11-19 14:29:12 +01:00
Thorsten Sick 43b6a391d8 Added a new naming check addon. Also verifies variable and function p… (#1456)
* Added a new naming check addon. Also verifies variable and function prefixes

* Verification added to code

* added naming checks ng selftest to travis file

* Ensure zero exit value for tests if tests succeed

* Expected values adjusted

* Fixed copy and paste error
2018-11-06 20:46:07 +01:00
amai2012 39c2625789 Run check for missing CWE entries on travis. 2018-10-22 13:14:48 +02:00
Matthias Krüger df32b0fb05 travis: reenable llvm and clang checks 2018-10-16 22:01:52 +02:00
Daniel Marjamäki 1245a036f7 Add check for shadow variables 2018-10-16 20:17:27 +02:00
amai2012 b6103d15a6 #8711 Run Makefile target validateXML on travis 2018-09-24 14:27:02 +02:00
Sebastian dce3281766
addons/cert.py: Add MSC30-C: Do not use rand() (#1348)
Add function isStandardFunction() that checks if the given function is a standard function.
Only when this function returns true for the currently checked rand() tokens it is reported as a violation.
Tests added for C and C++.
2018-08-24 15:05:50 +02:00
Matthias Krüger cfd5460670 travis: update clang and llvm repo hashes. 2018-08-12 11:17:24 +02:00
Sebastian 788ad0fc1f
Travis: Parallelize naming.py calls. (#1317)
naming.py is called parallel (4 times at a time) for all *.cpp.dump files directly in gui/ and lib/.
@matthiaskrgr had the idea for it: e46c499f5a (commitcomment-29717495)
Files in gui/test are now ignored already when creating the .dump files.
According to the Travis log output these changes speed up the Travis build up to three minutes.
2018-07-19 08:43:23 +02:00
Matthias Krüger e46c499f5a travis: when checking variable naming convention, run cppcheck with 2 threads instead of one. 2018-07-16 10:52:40 +02:00
Sebastian 5cc8da2db4
cfg/runtests.sh: Check syntax of defines in configuration files. (#1303)
travis: Add xmlstarlet package used by cfg/runtests.sh
2018-07-12 08:40:26 +02:00
Daniel Marjamäki a660ccaec8 Travis: Ensure naming convention in GUI 2018-06-18 14:23:28 +02:00
Daniel Marjamäki 68a91b73da Travis: Enforce naming convention, private variable names must start with 'm[A-Z]' 2018-06-18 09:55:43 +02:00
amai2012 453c663fb0
#8611 Rename xmlV2.rng. Renaming it to cppcheck-errors.rng (#1278) 2018-06-06 15:25:09 +02:00
amai2012 978bc7c150 Activate validation of --errorlist output (#1248) 2018-05-20 14:54:38 +02:00
amai2012 e2ea82908a #5718: temporarily disable make validateXMLV2 on travis 2018-05-17 13:48:06 +02:00
amai2012 64f0d31280 #5718 Supply DTD/XSD/RNG for cppcheck XML output - supply rng for current XML output. Add an automatic check on travis against the --errorlist output 2018-05-17 12:46:15 +02:00
Daniel Marjamäki e0a6ab1a0f activate misra regression tests 2018-05-16 11:13:25 +02:00
Matthias Krüger 9949768d7c travis: install wx-common which is used in test/cfg/runtests.sh 2018-05-13 12:32:19 +02:00
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