Travis CI macOS Builds are failing
See original GitHub issueIt 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:
- https://travis-ci.org/PowerShell/PowerShell/jobs/285387333
- https://travis-ci.org/PowerShell/PowerShell/jobs/285471140
- https://travis-ci.org/PowerShell/PowerShell/jobs/285293168
- https://travis-ci.org/PowerShell/PowerShell/jobs/285388460 (nightly)
Also, the nightly badge for Travis CI macOS reports success when it clearly failed.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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:
I’m looking into this. The badge caching is also still an issue.