]> gitweb.factorcode.org Git - factor.git/commitdiff
.travis: Trying to fix macos.
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 8 Dec 2019 19:58:06 +0000 (11:58 -0800)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 8 Dec 2019 19:58:06 +0000 (11:58 -0800)
/usr/local/Homebrew/Library/Homebrew/brew.rb:10:in `<main>': Homebrew must be run under Ruby 2.6! You're running 2.3.3. (RuntimeError)
The command "if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions snappy > /dev/null || brew install snappy; fi" failed and exited with 1 during .
Your build has been stopped.

.travis.yml

index 946c1512b157be8d10bbf4d6b3e50c85ac7dc260..d21c2579455248d225dc6e8e5736a689a505aec1 100644 (file)
@@ -36,6 +36,7 @@ addons:
 before_install:
   - uname -s
   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./build.sh deps-macosx ; else ./build.sh deps-apt-get ; fi
+  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions portable-ruby || brew install homebrew/portable-ruby/portable-ruby ; fi
   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions snappy > /dev/null || brew install snappy; fi
   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions cmake > /dev/null || brew install cmake; fi
   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions libmagic > /dev/null || brew install libmagic; fi