Issue #3683: add to CI test permissions on all files

This commit is contained in:
MaksimP 2017-01-01 17:38:02 +02:00 committed by Roman Ivanov
parent 16aadebeee
commit 0e7eaaccb3
3 changed files with 26 additions and 0 deletions

15
.ci/travis/checkchmod.sh Executable file
View File

@ -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.";

View File

@ -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 "^$" \

7
.travis.yml Normal file → Executable file
View File

@ -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: