tgupdate: merge t/girocco/readme into girocco base
[git/gitweb.git] / .travis.yml
blob9c63c8c3f6807841df13161f76d476deca0d94fd
1 language: c
3 sudo: false
5 cache:
6   directories:
7     - $HOME/travis-cache
9 os:
10   - linux
11   - osx
13 compiler:
14   - clang
15   - gcc
17 addons:
18   apt:
19     packages:
20     - language-pack-is
21     - git-svn
22     - apache2
24 env:
25   global:
26     - DEVELOPER=1
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"
40 matrix:
41   include:
42     - env: Documentation
43       os: linux
44       compiler: clang
45       addons:
46         apt:
47           packages:
48           - asciidoc
49           - xmlto
50       before_install:
51       before_script:
52       script: ci/test-documentation.sh
53       after_failure:
55 before_install:
56   - >
57     case "${TRAVIS_OS_NAME:-linux}" in
58     linux)
59       export GIT_TEST_HTTPD=YesPlease
61       mkdir --parents custom/p4
62       pushd custom/p4
63         wget --quiet http://filehost.perforce.com/perforce/r$LINUX_P4_VERSION/bin.linux26x86_64/p4d
64         wget --quiet http://filehost.perforce.com/perforce/r$LINUX_P4_VERSION/bin.linux26x86_64/p4
65         chmod u+x p4d
66         chmod u+x p4
67         export PATH="$(pwd):$PATH"
68       popd
69       mkdir --parents custom/git-lfs
70       pushd custom/git-lfs
71         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
72         tar --extract --gunzip --file "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
73         cp git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs .
74         export PATH="$(pwd):$PATH"
75       popd
76       ;;
77     osx)
78       brew update --quiet
79       # Uncomment this if you want to run perf tests:
80       # brew install gnu-time
81       brew install git-lfs gettext
82       brew link --force gettext
83       brew install caskroom/cask/perforce
84       ;;
85     esac;
86     echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)";
87     p4d -V | grep Rev.;
88     echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)";
89     p4 -V | grep Rev.;
90     echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)";
91     git-lfs version;
92     mkdir -p $HOME/travis-cache;
93     ln -s $HOME/travis-cache/.prove t/.prove;
95 before_script: make --jobs=2
97 script: make --quiet test
99 after_failure:
100   - >
101     : '<-- Click here to see detailed test output!                                                        ';
102     for TEST_EXIT in t/test-results/*.exit;
103     do
104       if [ "$(cat "$TEST_EXIT")" != "0" ];
105       then
106         TEST_OUT="${TEST_EXIT%exit}out";
107         echo "------------------------------------------------------------------------";
108         echo "$(tput setaf 1)${TEST_OUT}...$(tput sgr0)";
109         echo "------------------------------------------------------------------------";
110         cat "${TEST_OUT}";
111       fi;
112     done;
114 notifications:
115   email: false