19 - GIT_LFS_VERSION="1.1.0"
20 - DEFAULT_TEST_TARGET=prove
21 - GIT_PROVE_OPTS="--timer --jobs 3"
22 - GIT_TEST_OPTS="--verbose --tee"
23 - CFLAGS="-g -O2 -Wall -Werror"
24 - GIT_TEST_CLONE_2GB=YesPlease
25 # t9810 occasionally fails on Travis CI OS X
26 # t9816 occasionally fails with "TAP out of sequence errors" on Travis CI OS X
27 - GIT_SKIP_TESTS="t9810 t9816"
31 case "${TRAVIS_OS_NAME:-linux}" in
33 mkdir --parents custom/p4
35 wget --quiet http://filehost.perforce.com/perforce/r$P4_VERSION/bin.linux26x86_64/p4d
36 wget --quiet http://filehost.perforce.com/perforce/r$P4_VERSION/bin.linux26x86_64/p4
39 export PATH="$(pwd):$PATH"
41 mkdir --parents custom/git-lfs
43 wget --quiet https://github.com/github/git-lfs/releases/download/v$GIT_LFS_VERSION/git-lfs-linux-amd64-$GIT_LFS_VERSION.tar.gz
44 tar --extract --gunzip --file "git-lfs-linux-amd64-$GIT_LFS_VERSION.tar.gz"
45 cp git-lfs-$GIT_LFS_VERSION/git-lfs .
46 export PATH="$(pwd):$PATH"
50 brew_force_set_latest_binary_hash () {
52 SHA=$(brew fetch --force $FORMULA 2>&1 | grep ^SHA256: | cut -d ' ' -f 2)
53 sed -E -i.bak "s/sha256 \"[0-9a-f]{64}\"/sha256 \"$SHA\"/g" \
54 /usr/local/Library/Taps/homebrew/homebrew-binary/$FORMULA.rb
57 brew tap homebrew/binary --quiet
58 brew_force_set_latest_binary_hash perforce
59 brew_force_set_latest_binary_hash perforce-server
60 brew install git-lfs perforce-server perforce gettext
61 brew link --force gettext
64 echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)";
66 echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)";
68 echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)";
71 before_script: make --jobs=2
73 script: make --quiet test
77 : '<-- Click here to see detailed test output! ';
78 for TEST_EXIT in t/test-results/*.exit;
80 if [ "$(cat "$TEST_EXIT")" != "0" ];
82 TEST_OUT="${TEST_EXIT%exit}out";
83 echo "------------------------------------------------------------------------";
84 echo "$(tput setaf 1)${TEST_OUT}...$(tput sgr0)";
85 echo "------------------------------------------------------------------------";