Received: from eggs.gnu.org ([2001:4830:134:3::10]:48635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPDEX-0003zw-GG for qemu-devel@nongnu.org; Sun, 25 Jun 2017 15:30:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPDEU-0006n7-Ct for qemu-devel@nongnu.org; Sun, 25 Jun 2017 15:30:09 -0400 Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:33266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPDEU-0006mM-8u for qemu-devel@nongnu.org; Sun, 25 Jun 2017 15:30:06 -0400 Received: by mail-qk0-x22c.google.com with SMTP id r62so65373036qkf.0 for ; Sun, 25 Jun 2017 12:30:04 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Sun, 25 Jun 2017 16:29:46 -0300 Message-Id: <20170625192950.17677-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [RFC PATCH 0/4] travis: run all coccinelle scripts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Peter Maydell , Markus Armbruster , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Eric Blake , Laurent Vivier , Eduardo Habkost , Cornelia Huck , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fam Zheng Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= 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