1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-04 16:30:12 +02:00

travis-ci: support old versions of OSX

This commit is contained in:
Hans-Christoph Steiner 2018-03-07 15:14:30 +01:00
parent 47b1d4b1e6
commit 8b9fe05af5

View File

@ -57,7 +57,11 @@ install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
set -x;
brew update > /dev/null;
brew upgrade python;
if [ "`sw_vers -productVersion | sed 's,10\.\([0-9]*\).*,\1,'`" -gt 10 ]; then
brew upgrade python;
else
brew install python3;
fi;
brew install dash bash gradle jenv;
brew install gnu-sed --with-default-names;
if ! ruby -e 'v = `javac -version 2>&1`.split()[1].gsub("_", "."); exit Gem::Dependency.new("", "~> 1.8.0.131").match?("", v)'; then