qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC PATCH 0/4] travis: run all coccinelle scripts
@ 2017-06-25 19:29 Philippe Mathieu-Daudé
  2017-06-25 19:29 ` [Qemu-devel] [RFC PATCH 1/4] XXX travis: simplify matrix Philippe Mathieu-Daudé
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Philippe Mathieu-Daudé @ 2017-06-25 19:29 UTC (permalink / raw)
  To: qemu-devel, Peter Maydell, Markus Armbruster, Paolo Bonzini,
	Marc-André Lureau, Eric Blake, Laurent Vivier,
	Eduardo Habkost, Cornelia Huck, Alex Bennée, Fam Zheng
  Cc: Philippe Mathieu-Daudé

Another item from my 'automated testing' list: use travis-ci to run coccinelle
scripts. This series is more of a PoC. The idea would be to run it once a day
only on /master.

Patch 1 is here only to speedup travis testing.

Patch 3 add a script which run each cocci script sequencially. If the script
modified any file from the repo, changes are commited. If the script generated
some output (i.e. using python), this output is logged in an empty commit.
Spatch is run thru a debian-based Docker image.

Patch 4 is the travis job: it calls the previous script. To respect travis time
limit timeout, each script is limited to <10min. If any commit were
generated, they are pushed to my gh-repo:

https://github.com/philmd/qemu/compare/travis-cocci_v1...philmd:autogenerated-coccinelle-20170625-126

Build output (Ran for 23 min 7 sec):
https://travis-ci.org/philmd/qemu/builds/246848085

Any idea is welcome :)

Regards,

Phil.

Philippe Mathieu-Daudé (4):
  travis: simplify matrix
  coccinelle: ignore ASTs pre-parsed cached C files
  coccinelle: script to run them all
  travis: add job to run coccinelle scripts

 .gitignore                     |   2 +
 .travis.sshkey                 | Bin 0 -> 1296 bytes
 .travis.yml                    | 145 ++++++-----------------------------------
 scripts/check-cocci-scripts.sh |  47 +++++++++++++
 4 files changed, 69 insertions(+), 125 deletions(-)
 create mode 100644 .travis.sshkey
 create mode 100755 scripts/check-cocci-scripts.sh

-- 
2.13.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-06-27  8:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-25 19:29 [Qemu-devel] [RFC PATCH 0/4] travis: run all coccinelle scripts Philippe Mathieu-Daudé
2017-06-25 19:29 ` [Qemu-devel] [RFC PATCH 1/4] XXX travis: simplify matrix Philippe Mathieu-Daudé
2017-06-25 19:29 ` [Qemu-devel] [RFC PATCH 2/4] coccinelle: ignore ASTs pre-parsed cached C files Philippe Mathieu-Daudé
2017-06-25 19:29 ` [Qemu-devel] [RFC PATCH 3/4] coccinelle: script to run them all Philippe Mathieu-Daudé
2017-06-27  2:17   ` Eduardo Habkost
2017-06-27  2:33     ` Philippe Mathieu-Daudé
2017-06-27  2:48   ` Fam Zheng
2017-06-25 19:29 ` [Qemu-devel] [RFC PATCH 4/4] travis: add job to run coccinelle scripts Philippe Mathieu-Daudé
2017-06-26  4:58 ` [Qemu-devel] [RFC PATCH 0/4] travis: run all " Philippe Mathieu-Daudé
2017-06-27  8:12 ` Markus Armbruster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).