Skip to content

Commit 2d51987

Browse files
committed
Merge branch 'ls/travis-p4-on-macos' into next
Update the definition of the MacOSX test environment used by TravisCI. * ls/travis-p4-on-macos: travis-ci: fix Perforce install on macOS
2 parents 6f4810d + 672f51c commit 2d51987

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.travis.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,12 @@ before_install:
7575
popd
7676
;;
7777
osx)
78-
brew_force_set_latest_binary_hash () {
79-
FORMULA=$1
80-
SHA=$(brew fetch --force $FORMULA 2>&1 | grep ^SHA256: | cut -d ' ' -f 2)
81-
sed -E -i.bak "s/sha256 \"[0-9a-f]{64}\"/sha256 \"$SHA\"/g" \
82-
"$(brew --repository homebrew/homebrew-binary)/$FORMULA.rb"
83-
}
8478
brew update --quiet
85-
brew tap homebrew/binary --quiet
86-
brew_force_set_latest_binary_hash perforce
87-
brew_force_set_latest_binary_hash perforce-server
8879
# Uncomment this if you want to run perf tests:
8980
# brew install gnu-time
90-
brew install git-lfs perforce-server perforce gettext
81+
brew install git-lfs gettext
9182
brew link --force gettext
83+
brew install caskroom/cask/perforce
9284
;;
9385
esac;
9486
echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)";

0 commit comments

Comments
 (0)