Skip to content

Commit 9502b85

Browse files
committed
suppress "brew install mongodb" error on Travis
1 parent 35c4a71 commit 9502b85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ os:
1010

1111
before_install:
1212
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
13-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install mongodb; fi
13+
# "brew install" can succeed but return 1 if it has "caveats".
14+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install mongodb || true; fi
1415
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew services start mongodb; fi
1516

1617
before_script:

0 commit comments

Comments
 (0)