9 Commits

Author SHA1 Message Date
Stephan Lachnit
ab06ba419e Switch to GitHub Actions
Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
2022-02-03 16:40:02 +00:00
Stephan Lachnit
1709810707 Use distro provided git-clang-format
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2020-05-13 09:52:01 +01:00
Ahsan Fayaz
bfa20975ca Add git-clang-format, copied from llvm-project GitHub repository. This is preferable to downloading it each time which often fails and causes errors with continuous integration. 2020-03-03 16:54:09 +00:00
Kai Krakow
b2870671bd formatcheck: Use a shorter timeout
If the internet connection is down, the default timeout of wget is
unreasonably long. If formatcheck is used as a pre-commit hook, this
blocks usage of git for a long time although we probably have
git-clang-format available.

Signed-off-by: Kai Krakow <kai@kaishome.de>
2018-10-09 00:49:58 +02:00
Kai Krakow
a8726e8959 format-check: Enable usage as pre-commit hook
This adds support for a switch `--pre-commit` to work in
pre-commit-mode. It downloads the file and runs the real pre-commit-hook
then.

Signed-off-by: Kai Krakow <kai@kaishome.de>
2018-09-24 20:44:07 +02:00
Kai Krakow
f041ba2281 format-check: Optimize format-check.sh
This commit silences the standard output of wget to generate less noise
when using `format-check.sh` as a pre-commit hook.

It also doesn't redownload the file over and over again but only when
changes were detected. Previous behavior was wget creating numbered
versions by multiple downloads, thus it always used the first version
which was download. That is obviously wrong.

It errors out nicely now when the download failed.

Signed-off-by: Kai Krakow <kai@kaishome.de>
2018-09-24 20:21:55 +02:00
Marc Di Luzio
a419965061 Fix format check 2018-04-24 17:09:06 +01:00
Marc Di Luzio
53d15292c9 Fix the format check script by applying it to the previous commit
Rather than just to local changes, which doesn't work as intended
2018-04-16 17:52:48 +01:00
Marc Di Luzio
1f12bcb892 Add a basic travis file for unit tests
Only code formatting implemented at the moment.

  Travis is currently Ubuntu 14.04, which is missing multiple library versions needed. Bootstrapping in Python 3.5, Meson and Ninja is possible, but can take a while, but also bootstrapping in libsystemd is one step too many for now as it takes a significant amount of time.
2018-04-13 14:32:02 +01:00