question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Travis CI macOS Builds are failing

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mcarluccicommented, Oct 10, 2017

@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 ...
2reactions
SteveL-MSFTcommented, Oct 9, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Build Problems
One possible cause for builds failing unexpectedly can be calling set -e (also known as set errexit ), either directly in your .travis.yml...
Read more >
Osx builds on travis-ci.com start to fail with 'An error ...
I would say 2 in 3 of our builds are failing with “An error occurred while generated the build script.” Have tried xcode12.2...
Read more >
New Mac OS build error since the recent outage: "/Users ...
My iOS builds are all failing due to this error.
Read more >
Travis failing on all Pull Requests
The last Mac build terminated at 84% with no output received in 10 minutes. Seems more like a legit failure to me. Top....
Read more >
Swift build fails to link during Travis CI test
I've successfully built and run the tests on macOS manually. The problem I'm running into is that Travis fails with linker errors on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found