Merge branch 'ew/svn-crlf'
[git/git.git] / ci / install-dependencies.sh
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
8 P4WHENCE=http://filehost.perforce.com/perforce/r$LINUX_P4_VERSION
9 LFSWHENCE=https://github.com/github/git-lfs/releases/download/v$LINUX_GIT_LFS_VERSION
10
11 case "$jobname" in
12 linux-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 ;;
27 osx-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 ;;
35 esac
36
37 echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)"
38 p4d -V | grep Rev.
39 echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)"
40 p4 -V | grep Rev.
41 echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)"
42 git-lfs version