Skip to content

Commit 8895100

Browse files
committed
Check for commonly misspelled words during Travis CI build
1 parent db4fb56 commit 8895100

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ before_install:
6060
# Check for files that don't end in a newline (https://stackoverflow.com/a/25686825)
6161
- find . -path ./.git -prune -o -type f -print0 | xargs -0 -L1 bash -c 'if test "$(grep --files-with-matches --binary-files=without-match --max-count=1 --regexp='.*' "$0")" && test "$(tail --bytes=1 "$0")"; then echo "No new line at end of $0."; false; fi'
6262

63+
# Check for typos
64+
- git clone https://github.com/ss18/grep-typos.git "${HOME}/scripts/grep-typos"
65+
- find "$TRAVIS_BUILD_DIR" -path "${TRAVIS_BUILD_DIR}/.git" -prune -or -type f -print0 | xargs --null --max-args=1 bash "${HOME}/scripts/grep-typos/grep_typos.sh" "$0"
66+
- rm "${HOME}/scripts/grep-typos" --recursive --force
67+
6368
- source "${TRAVIS_BUILD_DIR}/arduino-ci-script.sh"
6469

6570
- set_script_verbosity "$VERBOSITY_LEVEL"

0 commit comments

Comments
 (0)