26 - GIT_LFS_VERSION="1.1.0"
27 - DEFAULT_TEST_TARGET=prove
28 - GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
29 - GIT_TEST_OPTS="--verbose --tee"
30 - GIT_TEST_CLONE_2GB=YesPlease
31 # t9810 occasionally fails on Travis CI OS X
32 # t9816 occasionally fails with "TAP out of sequence errors" on Travis CI OS X
33 - GIT_SKIP_TESTS="t9810 t9816"
37 case "${TRAVIS_OS_NAME:-linux}" in
39 mkdir --parents custom/p4
41 wget --quiet http://filehost.perforce.com/perforce/r$P4_VERSION/bin.linux26x86_64/p4d
42 wget --quiet http://filehost.perforce.com/perforce/r$P4_VERSION/bin.linux26x86_64/p4
45 export PATH="$(pwd):$PATH"
47 mkdir --parents custom/git-lfs
49 wget --quiet https://github.com/github/git-lfs/releases/download/v$GIT_LFS_VERSION/git-lfs-linux-amd64-$GIT_LFS_VERSION.tar.gz
50 tar --extract --gunzip --file "git-lfs-linux-amd64-$GIT_LFS_VERSION.tar.gz"
51 cp git-lfs-$GIT_LFS_VERSION/git-lfs .
52 export PATH="$(pwd):$PATH"
56 brew_force_set_latest_binary_hash () {
58 SHA=$(brew fetch --force $FORMULA 2>&1 | grep ^SHA256: | cut -d ' ' -f 2)
59 sed -E -i.bak "s/sha256 \"[0-9a-f]{64}\"/sha256 \"$SHA\"/g" \
60 /usr/local/Library/Taps/homebrew/homebrew-binary/$FORMULA.rb
63 brew tap homebrew/binary --quiet
64 brew_force_set_latest_binary_hash perforce
65 brew_force_set_latest_binary_hash perforce-server
66 brew install git-lfs perforce-server perforce gettext
67 brew link --force gettext
70 echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)";
72 echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)";
74 echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)";
76 mkdir -p $HOME/travis-cache;
77 ln -s $HOME/travis-cache/.prove t/.prove;
79 before_script: make --jobs=2
81 script: make --quiet test
85 : '<-- Click here to see detailed test output! ';
86 for TEST_EXIT in t/test-results/*.exit;
88 if [ "$(cat "$TEST_EXIT")" != "0" ];
90 TEST_OUT="${TEST_EXIT%exit}out";
91 echo "------------------------------------------------------------------------";
92 echo "$(tput setaf 1)${TEST_OUT}...$(tput sgr0)";
93 echo "------------------------------------------------------------------------";