Merge pull request #6279 from MaximKhlobystov/lint-only-html5

Filtering the files for linting
This commit is contained in:
Anton Georgiev 2018-11-21 19:17:42 -02:00 committed by GitHub
commit 262d009f3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,8 +8,17 @@ if [[ $files = *"bigbluebutton-html5"* ]]; then
meteor npm install
if [ $1 = linter ]
then
html5_files=""
list=$(echo $files | tr " " "\n")
for file in $list
do
if [[ $file = bigbluebutton-html5* ]] ; then
html5_files+=" $file"
fi
done
cd ..
bigbluebutton-html5/node_modules/.bin/eslint --ext .jsx,.js $files
bigbluebutton-html5/node_modules/.bin/eslint --ext .jsx,.js $html5_files
elif [ $1 = acceptance_tests ]
then
{