mirror of
https://github.com/git/git.git
synced 2024-10-22 12:28:32 +02:00
Merge branch 'ls/travis-p4-on-macos'
Update the definition of the MacOSX test environment used by TravisCI. * ls/travis-p4-on-macos: travis-ci: fix Perforce install on macOS
This commit is contained in:
commit
4e170adc8a
12
.travis.yml
12
.travis.yml
@ -75,20 +75,12 @@ before_install:
|
|||||||
popd
|
popd
|
||||||
;;
|
;;
|
||||||
osx)
|
osx)
|
||||||
brew_force_set_latest_binary_hash () {
|
|
||||||
FORMULA=$1
|
|
||||||
SHA=$(brew fetch --force $FORMULA 2>&1 | grep ^SHA256: | cut -d ' ' -f 2)
|
|
||||||
sed -E -i.bak "s/sha256 \"[0-9a-f]{64}\"/sha256 \"$SHA\"/g" \
|
|
||||||
"$(brew --repository homebrew/homebrew-binary)/$FORMULA.rb"
|
|
||||||
}
|
|
||||||
brew update --quiet
|
brew update --quiet
|
||||||
brew tap homebrew/binary --quiet
|
|
||||||
brew_force_set_latest_binary_hash perforce
|
|
||||||
brew_force_set_latest_binary_hash perforce-server
|
|
||||||
# Uncomment this if you want to run perf tests:
|
# Uncomment this if you want to run perf tests:
|
||||||
# brew install gnu-time
|
# brew install gnu-time
|
||||||
brew install git-lfs perforce-server perforce gettext
|
brew install git-lfs gettext
|
||||||
brew link --force gettext
|
brew link --force gettext
|
||||||
|
brew install caskroom/cask/perforce
|
||||||
;;
|
;;
|
||||||
esac;
|
esac;
|
||||||
echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)";
|
echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)";
|
||||||
|
Loading…
Reference in New Issue
Block a user