Travis: Use Homebrew's new uninstall script
To standardize removal a bit more and make things a bit quieter, get
Homebrew's uninstall script and run it on Travis CI.
[skip lint]
[skip appveyor]
@@ -7,9 +7,10 @@ export CONDA_NPY=19
# Remove homebrew.
echo ""
echo "Removing homebrew from Travis CI to avoid conflicts."
-brew remove --force --ignore-dependencies $(brew list)
-brew cleanup -s
-rm -rf $(brew --cache)
+curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall > ~/uninstall_homebrew.sh
+chmod +x ~/uninstall_homebrew.sh
+~/uninstall_homebrew.sh -fq
+rm ~/uninstall_homebrew.sh
# Install and configure conda environment.
echo ""
