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.2"
31 - LINUX_GIT_LFS_VERSION="1.5.2"
32 - DEFAULT_TEST_TARGET=prove
33 - GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
34 - GIT_TEST_OPTS="--verbose-log"
35 - GIT_TEST_CLONE_2GB=YesPlease
36 # t9810 occasionally fails on Travis CI OS X
37 # t9816 occasionally fails with "TAP out of sequence errors" on Travis CI OS X
38 - GIT_SKIP_TESTS="t9810 t9816"
50 test "$TRAVIS_REPO_SLUG" != "git/git" ||
51 ci/run-windows-build.sh $TRAVIS_BRANCH $(git rev-parse HEAD)
58 - docker pull daald/ubuntu32:xenial
64 --env DEFAULT_TEST_TARGET
67 --env GIT_TEST_CLONE_2GB
68 --volume "${PWD}:/usr/src/git"
70 /usr/src/git/ci/run-linux32-build.sh $(id -u $USER)
71 # Use the following command to debug the docker build locally:
72 # $ docker run -itv "${PWD}:/usr/src/git" --entrypoint /bin/bash daald/ubuntu32:xenial
73 # root@container:/# /usr/src/git/ci/run-linux32-build.sh
74 - env: Static Analysis
83 # "before_script" that builds Git is inherited from base job
96 script: ci/test-documentation.sh
101 case "${TRAVIS_OS_NAME:-linux}" in
103 export GIT_TEST_HTTPD=YesPlease
105 mkdir --parents custom/p4
107 wget --quiet http://filehost.perforce.com/perforce/r$LINUX_P4_VERSION/bin.linux26x86_64/p4d
108 wget --quiet http://filehost.perforce.com/perforce/r$LINUX_P4_VERSION/bin.linux26x86_64/p4
111 export PATH="$(pwd):$PATH"
113 mkdir --parents custom/git-lfs
115 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
116 tar --extract --gunzip --file "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
117 cp git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs .
118 export PATH="$(pwd):$PATH"
123 # Uncomment this if you want to run perf tests:
124 # brew install gnu-time
125 brew install git-lfs gettext
126 brew link --force gettext
127 brew install caskroom/cask/perforce
130 echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)";
132 echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)";
134 echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)";
136 mkdir -p $HOME/travis-cache;
137 ln -s $HOME/travis-cache/.prove t/.prove;
139 before_script: make --jobs=2
141 script: make --quiet test
145 : '<-- Click here to see detailed test output! ';
146 for TEST_EXIT in t/test-results/*.exit;
148 if [ "$(cat "$TEST_EXIT")" != "0" ];
150 TEST_OUT="${TEST_EXIT%exit}out";
151 echo "------------------------------------------------------------------------";
152 echo "$(tput setaf 1)${TEST_OUT}...$(tput sgr0)";
153 echo "------------------------------------------------------------------------";