-
Notifications
You must be signed in to change notification settings - Fork 445
Expand file tree
/
Copy pathbrew_install.bash
More file actions
executable file
·34 lines (25 loc) · 1.38 KB
/
brew_install.bash
File metadata and controls
executable file
·34 lines (25 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
set -ex
# Hack to inject bogus bottle block into chapel.rb for testing purposes.
cd /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core
/home/linuxbrew/brew_get_bogus_bottles.bash | sed -i -e '/<bottle-block-placeholder-injected-during-testing>/r /dev/stdin' -e '/<bottle-block-placeholder-injected-during-testing>/d' Formula/c/chapel.rb
git add Formula/c/chapel.rb && git commit -m "update chapel.rb for nightly testing" && PAGER=cat git show
cd /home/linuxbrew
# Important to set HOMEBREW_NO_INSTALL_FROM_API to actually test changes
export HOMEBREW_NO_INSTALL_FROM_API=1
# Might not be needed, but also doesn't hurt and matches homebrew CI
export HOMEBREW_NO_AUTO_UPDATE=1
#Script used in docker exec command to test homebrew formula
# brew test-bot --only-tap-syntax
# if [ $? -ne 0 ]; then
# echo "brew test-bot --only-tap-syntax failed"
# exit 1
# else
# echo "brew test-bot --only-tap-syntax succeeded"
# fi
# tests commands
brew test-bot --only-cleanup-before
brew test-bot --only-setup
brew test-bot --only-formulae-dependents --junit --testing-formulae=chapel --skipped-or-failed-formulae=chapel
# This is the bulk of the testing and the same command that Homebrew CI runs
brew test-bot --skip-online-checks --only-formulae --junit --only-json-tab --skip-dependents --testing-formulae="chapel" --added-formulae="" --deleted-formulae=""