Skip to content

Commit

Permalink
[CI] Fix test_macos with recent bash for nix-shell (#10480)
Browse files Browse the repository at this point in the history
* [CI] Initialize nix environment in prepare_build

* [CI] Install recent bash for nix-shell on macos
  • Loading branch information
straight-shoota authored Mar 15, 2021
1 parent 2698c43 commit 9e049e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/ci
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ prepare_build() {
on_osx brew update --preinstall
on_osx brew bundle --no-lock

# Install a recent bash version for nix-shell.
# macos ships with an ancient one.
if [ `uname` = "Darwin" ]; then
on_nix_shell "brew install bash"
fi
# initialize nix environment
on_nix_shell nix-shell

# Note: brew link --force might show:
# Warning: Refusing to link macOS-provided software: llvm
#
Expand Down

0 comments on commit 9e049e7

Please sign in to comment.