Skip to content

Commit cd82f75

Browse files
committed
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`
1 parent eafa747 commit cd82f75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ci/lint/04_install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export LC_ALL=C
99
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
1010
# update first to install required ruby dependency
1111
travis_retry brew update
12+
travis_retry brew reinstall git -- --with-pcre2 # for --perl-regexp
13+
travis_retry brew install grep # gnu grep for --perl-regexp support
14+
PATH="$(brew --prefix grep)/libexec/gnubin:$PATH"
1215
travis_retry brew install shellcheck
1316
travis_retry brew upgrade python
1417
PATH="$(brew --prefix python)/bin:$PATH"

0 commit comments

Comments
 (0)