aboutsummaryrefslogtreecommitdiff
path: root/ci/lint/04_install.sh
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2019-06-10 04:55:47 +0200
committerBen Woosley <ben.woosley@gmail.com>2019-10-09 15:50:42 +0100
commitcd82f75a431967030d25bcfe7c4aaefe5b345a99 (patch)
treec069a9aad020cb5bf7b1c61bf8a9fa348cb19c0b /ci/lint/04_install.sh
parenteafa747ca5926d47f555820cecae0846ac01e20f (diff)
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`
Diffstat (limited to 'ci/lint/04_install.sh')
-rwxr-xr-xci/lint/04_install.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/ci/lint/04_install.sh b/ci/lint/04_install.sh
index 9d275e7b3b..9f7e1b310d 100755
--- a/ci/lint/04_install.sh
+++ b/ci/lint/04_install.sh
@@ -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"