mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
19 lines
538 B
Bash
Executable File
19 lines
538 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
export PATH=${HOME}/osgeo4travis/bin:${PATH}
|
|
|
|
|
|
echo "Spell check"
|
|
|
|
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' ' ' )
|
|
else
|
|
echo "TRAVIS COMMIT RANGE: $TRAVIS_COMMIT_RANGE"
|
|
FILES=$(git diff --diff-filter=AM --name-only ${TRAVIS_COMMIT_RANGE/.../..} | tr '\n' ' ' )
|
|
fi
|
|
|
|
./scripts/spell_check/check_spelling.sh -r $FILES
|