diff --git a/.ci/travis/checkchmod.sh b/.ci/travis/checkchmod.sh index ae1a88dd6..99f900a81 100755 --- a/.ci/travis/checkchmod.sh +++ b/.ci/travis/checkchmod.sh @@ -2,7 +2,8 @@ set -e -CHMOD=$(find -type f -not -path '*/\.git/*' -a -type f -not -name '*.sh' -a \( -type d -not -perm 775 -o -type f -not -perm 664 \)) +# On Travis, after cloe all files are with 644 permission, on local they are 664, so we check only executable bit +CHMOD=$(find -type f -not -path '*/\.git/*' -a -type f -not -name '*.sh' -a \( -type d -not -perm 775 -o -type f -executable \)) if [[ ! -z $CHMOD ]]; then echo "Expected mode for non '.sh' files is 664."; echo "Files that violates this rule:" diff --git a/.travis.yml b/.travis.yml index 654782a5d..68e7b7572 100644 --- a/.travis.yml +++ b/.travis.yml @@ -228,11 +228,11 @@ matrix: - COVERAGE_CMD="" # Check the chmod on files. - # - env: - # - DESC="check permissions on all files" - # - GOAL="check-chmod" - # - CMD="./.ci/travis/travis.sh" - # - COVERAGE_CMD="" + - env: + - DESC="check permissions on all files" + - GOAL="check-chmod" + - CMD="./.ci/travis/travis.sh" + - COVERAGE_CMD="" # Ensure that all Sevntu check are kused - jdk: oraclejdk8