-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrunTools.sh
More file actions
executable file
·26 lines (20 loc) · 923 Bytes
/
runTools.sh
File metadata and controls
executable file
·26 lines (20 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
git submodule foreach git pull origin master
if [ $# -eq 0 ]
then
echo "Running Local Version"
echo "Checking PHP syntax"
php buildTools/check-php-syntax.php ./
echo "Checking for Sign Off issues"
php buildTools/check-signed-off.php ./
echo "Checking for Licensing issues"
php buildTools/check-license-master.php ./
echo "Checking for End of File issues"
php buildTools/check-eof-master.php ./
else
echo "Running Travis Version"
if find . -name "*.php" ! -path "./vendor/*" -exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi
if php other/buildTools/check-signed-off.php travis | grep "Error:"; then php buildTools/check-signed-off.php travis; exit 1; fi
if find . -name "*.php" -exec php buildTools/check-license.php {} 2>&1 \; | grep "Error:"; then exit 1; fi
if find . -name "*.php" -exec php buildTools/check-eof.php {} 2>&1 \; | grep "Error:"; then exit 1; fi
fi