27 # The Linux build installs the defined dependency versions below.
28 # The OS X build installs the latest available versions. Keep that
29 # in mind when you encounter a broken OS X build!
30 - LINUX_P4_VERSION="16.1"
31 - LINUX_GIT_LFS_VERSION="1.2.0"
32 - DEFAULT_TEST_TARGET=prove
33 - GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
34 - GIT_TEST_OPTS="--verbose-log"
36 - GIT_TEST_CLONE_2GB=YesPlease
37 # t9810 occasionally fails on Travis CI OS X
38 # t9816 occasionally fails with "TAP out of sequence errors" on Travis CI OS X
39 - GIT_SKIP_TESTS="t9810 t9816"
53 script: ci/test-documentation.sh
58 case "${TRAVIS_OS_NAME:-linux}" in
60 mkdir --parents custom/p4
62 wget --quiet http://filehost.perforce.com/perforce/r$LINUX_P4_VERSION/bin.linux26x86_64/p4d
63 wget --quiet http://filehost.perforce.com/perforce/r$LINUX_P4_VERSION/bin.linux26x86_64/p4
66 export PATH="$(pwd):$PATH"
68 mkdir --parents custom/git-lfs
70 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
71 tar --extract --gunzip --file "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
72 cp git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs .
73 export PATH="$(pwd):$PATH"
77 brew_force_set_latest_binary_hash () {
79 SHA=$(brew fetch --force $FORMULA 2>&1 | grep ^SHA256: | cut -d ' ' -f 2)
80 sed -E -i.bak "s/sha256 \"[0-9a-f]{64}\"/sha256 \"$SHA\"/g" \
81 "$(brew --repository homebrew/homebrew-binary)/$FORMULA.rb"
84 brew tap homebrew/binary --quiet
85 brew_force_set_latest_binary_hash perforce
86 brew_force_set_latest_binary_hash perforce-server
87 # Uncomment this if you want to run perf tests:
88 # brew install gnu-time
89 brew install git-lfs perforce-server perforce gettext
90 brew link --force gettext
93 echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)";
95 echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)";
97 echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)";
99 mkdir -p $HOME/travis-cache;
100 ln -s $HOME/travis-cache/.prove t/.prove;
102 before_script: make --jobs=2
104 script: make --quiet test
108 : '<-- Click here to see detailed test output! ';
109 for TEST_EXIT in t/test-results/*.exit;
111 if [ "$(cat "$TEST_EXIT")" != "0" ];
113 TEST_OUT="${TEST_EXIT%exit}out";
114 echo "------------------------------------------------------------------------";
115 echo "$(tput setaf 1)${TEST_OUT}...$(tput sgr0)";
116 echo "------------------------------------------------------------------------";