1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-01 16:17:46 +02:00

Check that files are formatted correctly.

Fail the CI build if they are not.
This commit is contained in:
iphydf 2020-04-23 01:13:28 +00:00
parent b270c1e8b7
commit 68db926f9f
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
2 changed files with 2 additions and 0 deletions

View File

@ -36,4 +36,5 @@ install:
script:
- $HOME/cache/astyle/build/gcc/bin/astyle --options=astylerc $(find . -name "*.[ch]")
- git diff --exit-code
- make ENABLE_PYTHON=1 -j2

View File

@ -132,6 +132,7 @@ static void catch_SIGSEGV(int sig)
if (!freopen("/dev/tty", "w", stderr)) { // make sure stderr is enabled since we may have disabled it
fprintf(stderr, "Warning: Failed to enable stderr\n");
}
endwin();
fprintf(stderr, "Caught SIGSEGV: Aborting toxic session.\n");
exit(EXIT_FAILURE);