diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2020-05-23 17:55:42 +0200 |
---|---|---|
committer | XinfengZhang <carl.zhang@intel.com> | 2020-06-05 16:04:47 +0800 |
commit | 829bde77a157d237f8e665c11952c16fe95e33cf (patch) | |
tree | a78f725cb85c5cacb876e7bad7b1d3af1be3b290 | |
parent | 780567520dc022f550bea10530ddb718c614dd12 (diff) | |
download | libva-829bde77a157d237f8e665c11952c16fe95e33cf.tar.gz |
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 <dev.primeos@gmail.com>
-rw-r--r-- | .travis.yml | 8 |
1 files changed, 7 insertions, 1 deletions
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 |