ci / install-dependencies.shon commit Merge branch 'jc/test-must-be-empty' (5ff42d4)
   1#!/usr/bin/env bash
   2#
   3# Install dependencies required to build and test Git on Linux and macOS
   4#
   5
   6. ${0%/*}/lib-travisci.sh
   7
   8P4WHENCE=http://filehost.perforce.com/perforce/r$LINUX_P4_VERSION
   9LFSWHENCE=https://github.com/github/git-lfs/releases/download/v$LINUX_GIT_LFS_VERSION
  10
  11case "$jobname" in
  12linux-clang|linux-gcc)
  13        mkdir --parents "$P4_PATH"
  14        pushd "$P4_PATH"
  15                wget --quiet "$P4WHENCE/bin.linux26x86_64/p4d"
  16                wget --quiet "$P4WHENCE/bin.linux26x86_64/p4"
  17                chmod u+x p4d
  18                chmod u+x p4
  19        popd
  20        mkdir --parents "$GIT_LFS_PATH"
  21        pushd "$GIT_LFS_PATH"
  22                wget --quiet "$LFSWHENCE/git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
  23                tar --extract --gunzip --file "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
  24                cp git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs .
  25        popd
  26        ;;
  27osx-clang|osx-gcc)
  28        brew update --quiet
  29        # Uncomment this if you want to run perf tests:
  30        # brew install gnu-time
  31        brew install git-lfs gettext
  32        brew link --force gettext
  33        brew install caskroom/cask/perforce
  34        ;;
  35esac
  36
  37echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)"
  38p4d -V | grep Rev.
  39echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)"
  40p4 -V | grep Rev.
  41echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)"
  42git-lfs version