From 829bde77a157d237f8e665c11952c16fe95e33cf Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Sat, 23 May 2020 17:55:42 +0200 Subject: travis: Add a test that code files don't have the exec bit set C source code and header files shouldn't be executable. This is a problem that already occurred pretty often in the past and was e.g. fixed in 5d8c5ae, be95415, and 8352ab9. Therefore it seems like a good idea to add a CI check to prevent this issue from reappearing (probably mostly accidents due to wrong Git configurations, etc.). Signed-off-by: Michael Weiss --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b8d9e6b..6f29b70 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ before_install: - sudo apt-get install -y autoconf - sudo apt-get install -y automake - sudo apt-get install -y libtool - - sudo apt-get install -y m4 + - sudo apt-get install -y m4 - sudo apt-get install -y lcov - sudo apt-get install -y perl - sudo apt-get install -y pkg-config @@ -57,6 +57,12 @@ script: echo "Don't build on coverty_scan branch."; exit 0; fi + - if [[ -n "$(find -name '*.[ch]' -executable)" ]]; + then + echo "Error, a source code file(s) has the execute bit set:" >&2; + find -name '*.[ch]' -executable; + exit 1; + fi - ./autogen.sh - ./configure --prefix=/usr - make -j4 ; sudo make install -- cgit v1.2.1