25 # The Linux build installs the defined dependency versions below.
26 # The OS X build installs the latest available versions. Keep that
27 # in mind when you encounter a broken OS X build!
28 - LINUX_P4_VERSION="16.1"
29 - LINUX_GIT_LFS_VERSION="1.2.0"
30 - DEFAULT_TEST_TARGET=prove
31 - GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
32 - GIT_TEST_OPTS="--verbose --tee"
33 - GIT_TEST_CLONE_2GB=YesPlease
34 # t9810 occasionally fails on Travis CI OS X
35 # t9816 occasionally fails with "TAP out of sequence errors" on Travis CI OS X
36 - GIT_SKIP_TESTS="t9810 t9816"
40 case "${TRAVIS_OS_NAME:-linux}" in
42 mkdir --parents custom/p4
44 wget --quiet http://filehost.perforce.com/perforce/r$LINUX_P4_VERSION/bin.linux26x86_64/p4d
45 wget --quiet http://filehost.perforce.com/perforce/r$LINUX_P4_VERSION/bin.linux26x86_64/p4
48 export PATH="$(pwd):$PATH"
50 mkdir --parents custom/git-lfs
52 wget --quiet https://github.com/github/git-lfs/releases/download/v$LINUX_GIT_LFS_VERSION/git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz
53 tar --extract --gunzip --file "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
54 cp git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs .
55 export PATH="$(pwd):$PATH"
59 brew_force_set_latest_binary_hash () {
61 SHA=$(brew fetch --force $FORMULA 2>&1 | grep ^SHA256: | cut -d ' ' -f 2)
62 sed -E -i.bak "s/sha256 \"[0-9a-f]{64}\"/sha256 \"$SHA\"/g" \
63 /usr/local/Library/Taps/homebrew/homebrew-binary/$FORMULA.rb
66 brew tap homebrew/binary --quiet
67 brew_force_set_latest_binary_hash perforce
68 brew_force_set_latest_binary_hash perforce-server
69 brew install git-lfs perforce-server perforce gettext
70 brew link --force gettext
73 echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)";
75 echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)";
77 echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)";
79 mkdir -p $HOME/travis-cache;
80 ln -s $HOME/travis-cache/.prove t/.prove;
82 before_script: make --jobs=2
84 script: make --quiet test
88 : '<-- Click here to see detailed test output! ';
89 for TEST_EXIT in t/test-results/*.exit;
91 if [ "$(cat "$TEST_EXIT")" != "0" ];
93 TEST_OUT="${TEST_EXIT%exit}out";
94 echo "------------------------------------------------------------------------";
95 echo "$(tput setaf 1)${TEST_OUT}...$(tput sgr0)";
96 echo "------------------------------------------------------------------------";