Skip to content

Commit

Permalink
Modify homebrew testing to use new CI settings (chapel-lang#23610)
Browse files Browse the repository at this point in the history
Homebrew moved their CI to use Ubuntu 22.04 and added a flag to allow
Linux testing to impersonate a Mac.
  • Loading branch information
tzinsky authored Oct 10, 2023
2 parents 31a296e + 229601f commit cc321a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 2 additions & 4 deletions util/packaging/docker/test/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# This is a container used to run homebrew-ci

# Get the ubuntu container
FROM homebrew/ubuntu20.04:latest
# Get the homebrew ubuntu container
FROM FROM ghcr.io/homebrew/ubuntu22.04:master

RUN mkdir -p /home/linuxbrew

# COPY chapel.rb and chapel*.tar.gz inside the container to run homebrew install
COPY chapel.rb /home/linuxbrew/
COPY chapel*.tar.gz /home/linuxbrew/


3 changes: 3 additions & 0 deletions util/packaging/docker/test/brew_install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env bash
export HOMEBREW_SIMULATE_MACOS_ON_LINUX=1
#Update homebrew
brew update

#Script used in docker exec command to test homebrew formula
brew test-bot --only-tap-syntax
Expand Down

0 comments on commit cc321a1

Please sign in to comment.