]>
Commit | Line | Data |
---|---|---|
657343a6 LS |
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 | ||
f67242c1 JH |
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 | ||
657343a6 | 11 | case "${TRAVIS_OS_NAME:-linux}" in |
f67242c1 JH |
12 | linux) |
13 | export GIT_TEST_HTTPD=YesPlease | |
657343a6 | 14 | |
83d1efe5 SG |
15 | mkdir --parents "$P4_PATH" |
16 | pushd "$P4_PATH" | |
f67242c1 JH |
17 | wget --quiet "$P4WHENCE/bin.linux26x86_64/p4d" |
18 | wget --quiet "$P4WHENCE/bin.linux26x86_64/p4" | |
19 | chmod u+x p4d | |
20 | chmod u+x p4 | |
f67242c1 | 21 | popd |
83d1efe5 SG |
22 | mkdir --parents "$GIT_LFS_PATH" |
23 | pushd "$GIT_LFS_PATH" | |
f67242c1 JH |
24 | wget --quiet "$LFSWHENCE/git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" |
25 | tar --extract --gunzip --file "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" | |
26 | cp git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs . | |
f67242c1 | 27 | popd |
657343a6 | 28 | ;; |
f67242c1 JH |
29 | osx) |
30 | brew update --quiet | |
31 | # Uncomment this if you want to run perf tests: | |
32 | # brew install gnu-time | |
33 | brew install git-lfs gettext | |
34 | brew link --force gettext | |
35 | brew install caskroom/cask/perforce | |
657343a6 LS |
36 | ;; |
37 | esac | |
38 | ||
39 | echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)" | |
40 | p4d -V | grep Rev. | |
41 | echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)" | |
42 | p4 -V | grep Rev. | |
43 | echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)" | |
44 | git-lfs version |