QGIS/ci/travis/check_spelling.sh
2016-12-15 16:22:25 +01:00

17 lines
374 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 --name-only HEAD $(git merge-base HEAD master) | tr '\n' ' ' )
fi
./scripts/chkspelling_ag.sh $FILES