diff --git a/.ci/travis/checkchmod.sh b/.ci/travis/checkchmod.sh new file mode 100755 index 000000000..07ea38073 --- /dev/null +++ b/.ci/travis/checkchmod.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +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 \)) +if [[ -z $CHMOD ]]; then + exit 0; +else + for NAMEFILE in $CHMOD + do + echo $NAMEFILE; + done +fi +echo " "; +echo "To change permissions."; diff --git a/.ci/travis/travis.sh b/.ci/travis/travis.sh index 112f8ebc5..fc5fd314a 100755 --- a/.ci/travis/travis.sh +++ b/.ci/travis/travis.sh @@ -47,6 +47,10 @@ pr-description) .ci/travis/xtr_pr-description.sh ;; +check-chmod) + .ci/travis/checkchmod.sh + ;; + all-sevntu-checks) xmlstarlet sel --net --template -m .//module -v "@name" -n config/checkstyle_sevntu_checks.xml \ | grep -vE "Checker|TreeWalker|Filter|Holder" | grep -v "^$" \ diff --git a/.travis.yml b/.travis.yml old mode 100644 new mode 100755 index 0fea63f24..68e7b7572 --- a/.travis.yml +++ b/.travis.yml @@ -227,6 +227,13 @@ matrix: - CMD="./.ci/travis/travis.sh" - COVERAGE_CMD="" + # Check the chmod on files. + - 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 env: