lint: Install grep and git via brew on mac for --perl-regexp

Particularly `--with-pcre2` is needed to run `git grep --perl-regexp` in
`test/link/check-doc.py`
This commit is contained in:
Ben Woosley committed 2019-10-09 15:50:42 +01:00
1 parent eafa747ca5
commit cd82f75a43
1 file changed
+3
+3
View File
@@ -9,6 +9,9 @@ export LC_ALL=C
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
# update first to install required ruby dependency
travis_retry brew update
travis_retry brew reinstall git -- --with-pcre2 # for --perl-regexp
travis_retry brew install grep # gnu grep for --perl-regexp support
PATH="$(brew --prefix grep)/libexec/gnubin:$PATH"
travis_retry brew install shellcheck
travis_retry brew upgrade python
PATH="$(brew --prefix python)/bin:$PATH"