Skip to content

Travis CI macOS Builds are failing #5062

Closed

Description

@markekraus

It appears something has changed, possibly external, and all of the macOS builds are failing (including nightly)

./installpsh-osx.sh: line 99: [: missing `]'

\n*** Installing PowerShell Core for osx...

Howebrew is already installed, skipping...

Installing cask...

Updating Homebrew...

==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz

######################################################################## 100.0%

==> Pouring portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz

/usr/local/Homebrew/Library/Homebrew/brew.rb:12:in `<main>': Homebrew must be run under Ruby 2.3! (RuntimeError)

ERROR: Cask failed to install! Cannot install powershell...

The command "./install-powershell.sh" failed and exited with 2 during .

examples:

Also, the nightly badge for Travis CI macOS reports success when it clearly failed.

Activity

  1. SteveL-MSFT commented on Oct 9, 2017

    @SteveL-MSFT
    Member

    I'm looking into this. The badge caching is also still an issue.

  2. added this to the milestone on Oct 9, 2017
  3. benapetr commented on Oct 10, 2017

    @benapetr

    Hello,

    How did you fix this? Our project has same issue.

  4. mcarlucci commented on Oct 10, 2017

    @mcarlucci

    Petr Bena (@benapetr) Homebrew always uses the system Ruby, so it likely started with Ruby 2.0.0, installed the vendored Ruby 2.3.3, but then didn't use the vendored Ruby the first time.

    In the interim and until this is specifically addressed by Homebrew or Travis CI, I fixed this by passing the no-auto-update flag:

    HOMEBREW_NO_AUTO_UPDATE=1 brew install ...
    
  5. SteveL-MSFT commented on Oct 10, 2017

    @SteveL-MSFT
    Member

    Petr Bena (@benapetr) the main part of the fix was to move brew update earlier before using brew

  6. benapetr commented on Oct 10, 2017

    @benapetr

    oh, I tried this from your patch #5065 referenced in this thread, but maybe brew update would be better option: huggle/huggle3-qt-lx@95267bb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions