travis-ci: fix GNU sed for macOS, homebrew changed how it works

++brew install gnu-sed --with-default-names
Warning: gnu-sed: this formula has no --with-default-names option so it will be ignored!
==> Downloading https://homebrew.bintray.com/bottles/gnu-sed-4.7.high_sierra.bot
######################################################################## 100.0%
==> Pouring gnu-sed-4.7.high_sierra.bottle.2.tar.gz
==> Caveats
GNU "sed" has been installed as "gsed".
If you need to use it as "sed", you can add a "gnubin" directory
to your PATH from your bashrc like:
    PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
This commit is contained in:
Hans-Christoph Steiner 2019-01-28 14:07:01 +01:00
parent 9226cee162
commit 288877e7ce

View file

@ -58,8 +58,8 @@ install:
else
brew install python3;
fi;
brew install dash bash gradle jenv;
brew install gnu-sed --with-default-names;
brew install dash bash gnu-sed gradle jenv;
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH";
if ! ruby -e 'v = `javac -version 2>&1`.split()[1].gsub("_", "."); exit Gem::Dependency.new("", "~> 1.8.0.131").match?("", v)'; then
brew cask uninstall java --force;
brew cask install caskroom/versions/java8;