Browse Source

Auto merge of #2840 - micbou:fix-macos-travis, r=puremourning

[READY] Fix macOS builds on Travis

Fix the `shell_session_update: command not found` error in macOS builds on Travis by removing [the `cd`, `popd`, `pushd` functions defined by RVM](https://github.com/rvm/rvm/blob/ff63fa117bd05e581ecbf2b0378d9ddbb263deb1/scripts/cd#L14-L16). See https://github.com/travis-ci/travis-ci/issues/8703#issuecomment-347881274.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2840)
<!-- Reviewable:end -->
zzbot 7 years ago
parent
commit
d99eb5d5cb
1 changed files with 5 additions and 0 deletions
  1. 5 0
      ci/travis/travis_install.sh

+ 5 - 0
ci/travis/travis_install.sh

@@ -2,6 +2,11 @@
 
 set -ev
 
+# RVM overrides the cd, popd, and pushd shell commands, causing the
+# "shell_session_update: command not found" error on macOS when executing those
+# commands.
+unset -f cd popd pushd
+
 ####################
 # OS-specific setup
 ####################