summaryrefslogtreecommitdiff
path: root/tools/coverity.sh
Commit message (Collapse)AuthorAgeFilesLines
* ci: simplify the Coverity script a bitFrantisek Sumsal2022-08-111-206/+40
| | | | | Also, address https://github.com/systemd/systemd/pull/24252#issuecomment-1208747320 by using a pre-defined e-mail address stored in the GH Action secrets.
* tree-wide: add spdx header on all scripts and helpersZbigniew Jędrzejewski-Szmek2021-01-281-0/+1
| | | | | | Even though many of those scripts are very simple, it is easier to include the header than to try to say whether each of those files is trivial enough not to require one.
* ci: move the Coverity job to GitHub ActionsFrantisek Sumsal2021-01-111-9/+3
|
* treewide: more portable bash shebangsJörg Thalheim2020-03-051-1/+1
| | | | | | | | | | | | | | | | As in 2a5fcfae024ffc370bb780572279f45a1da3f946 and in 3e67e5c9928f8b1e1c5a63def88d53ed1fed12eb using /usr/bin/env allows bash to be looked up in PATH rather than being hard-coded. As with the previous changes the same arguments apply - distributions have scripts to rewrite shebangs on installation and they know what locations to rely on. - For tests/compilation we should rather rely on the user to have setup there PATH correctly. In particular this makes testing from git easier on NixOS where do not provide /bin/bash to improve compose-ability.
* coverity: replace python with jqEvgeny Vereshchagin2019-10-301-3/+3
| | | | | | | | Judging by https://travis-ci.org/systemd/systemd/jobs/604425785 (where the script failed with "tools/coverity.sh: line 45: python: command not found") python-unversioned-command is no longer installed by default with python2. Given that it's not the first time python has vanished and it's not clear what exactly should be installed to make sure it's there, let's just use jq instead.
* codespell: fix spelling errorsBen Boeckel2019-04-291-2/+2
|
* scripts: use 4 space indentationZbigniew Jędrzejewski-Szmek2019-04-121-127/+127
| | | | | | | | | | | | | | | | | | We had all kinds of indentation: 2 sp, 3 sp, 4 sp, 8 sp, and mixed. 4 sp was the most common, in particular the majority of scripts under test/ used that. Let's standarize on 4 sp, because many commandlines are long and there's a lot of nesting, and with 8sp indentation less stuff fits. 4 sp also seems to be the default indentation, so this will make it less likely that people will mess up if they don't load the editor config. (I think people often use vi, and vi has no support to load project-wide configuration automatically. We distribute a .vimrc file, but it is not loaded by default, and even the instructions in it seem to discourage its use for security reasons.) Also remove the few vim config lines that were left. We should either have them on all files, or none. Also remove some strange stuff like '#!/bin/env bash', yikes.
* coverity.sh: fail if uploading data to Coverity Scan is forbiddenEvegeny Vereshchagin2018-06-251-1/+1
|
* coverity.sh: use a comma to separate module namesEvegeny Vereshchagin2018-06-251-1/+1
| | | | | | | | | | | Otherwise Python bails out with ``` Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'json' is not defined ``` See https://travis-ci.org/systemd/systemd/jobs/397490437
* coverity.sh: make the script compatible with Python 3Evegeny Vereshchagin2018-06-251-2/+2
|
* coverity.sh: fix a couple indentsEvegeny Vereshchagin2018-06-251-2/+2
|
* coverity.sh: check that coverity responds with 200Evegeny Vereshchagin2018-06-071-1/+10
| | | | | | This is mostly inspired by https://github.com/pmem/pmdk/commit/7b103fd2dd54b2e5974f71fb65c81ab3713c12c5 Closes https://github.com/systemd/systemd/issues/9186.
* Rename scripts/coverity.sh to tools/coverity.shZbigniew Jędrzejewski-Szmek2018-03-121-0/+224
There are only two files in tools/, I don't think we need a separate directory for them.