Skip to content
Permalink
Browse files

do not run spell check on Travis if no files were edited (only deleted)

  • Loading branch information
3nids committed Feb 2, 2017
1 parent 1d118e9 commit 02b7a551d55c4ff886a0aa04280bd49734bd58c3
Showing with 6 additions and 3 deletions.
  1. +4 −2 ci/travis/check_spelling.sh
  2. +1 −1 scripts/spell_check/.agignore
  3. +1 −0 scripts/spell_check/spelling.dat
@@ -6,7 +6,7 @@ export PATH=${HOME}/osgeo4travis/bin:${PATH}

echo "Spell check"

if [[ ! -z $TRAVIS_PULL_REQUEST_BRANCH ]]; then
if [[ ! -z $TRAVIS_PULL_REQUEST_BRANCH ]]; then
# if on a PR, just analyse the changed files
echo "TRAVIS PR BRANCH: $TRAVIS_PULL_REQUEST_BRANCH"
FILES=$(git diff --diff-filter=AM --name-only $(git merge-base HEAD master) | tr '\n' ' ' )
@@ -15,4 +15,6 @@ else
FILES=$(git diff --diff-filter=AM --name-only ${TRAVIS_COMMIT_RANGE/.../..} | tr '\n' ' ' )
fi

./scripts/spell_check/check_spelling.sh -r $FILES
if [[ ! -z $FILES ]]; then
./scripts/spell_check/check_spelling.sh -r $FILES
fi
@@ -22,6 +22,7 @@ src/plugins/grass/qtermwidget/
#Extensions
*.*.orig
*.*.sortinc
*.*.png
*.*.prepare
.agignore

@@ -38,7 +39,6 @@ Exception_to_GPL_for_Qt.txt
images/svg/symbol/blue-marker.svg
images/svg/symbol/red-marker.svg
images/themes/default/propertyicons/diagram.svg

images/themes/default/propertyicons/general.svg
images/themes/default/svgbase/hammer.svg
LexerR.py
@@ -3551,6 +3551,7 @@ inclding:including
incldue:include
incldued:included
incldues:includes
inclinaison:inclination
inclreased:increased
includ:include
includng:including

0 comments on commit 02b7a55

Please sign in to comment.
You can’t perform that action at this time.