Makefile: set NO_OPENSSL on macOS by default
[git/git.git] / .travis.yml
CommitLineData
522354d7
LS
1language: c
2
ce59dffb
LS
3sudo: false
4
6272ed31
LS
5cache:
6 directories:
7 - $HOME/travis-cache
8
522354d7
LS
9os:
10 - linux
11 - osx
12
13compiler:
14 - clang
15 - gcc
16
17addons:
18 apt:
19 packages:
20 - language-pack-is
e7e9f5e7 21 - git-svn
d9d14268 22 - apache2
522354d7
LS
23
24env:
25 global:
658df95a 26 - DEVELOPER=1
3d319f2c
LS
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"
522354d7 32 - DEFAULT_TEST_TARGET=prove
6272ed31 33 - GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
522354d7 34 - GIT_TEST_OPTS="--verbose --tee"
d9d14268 35 - GIT_TEST_HTTPD=true
522354d7
LS
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"
40
b98712b9
LS
41matrix:
42 include:
43 - env: Documentation
44 os: linux
45 compiler: clang
46 addons:
47 apt:
48 packages:
49 - asciidoc
50 - xmlto
51 before_install:
52 before_script:
53 script: ci/test-documentation.sh
54 after_failure:
55
522354d7
LS
56before_install:
57 - >
58 case "${TRAVIS_OS_NAME:-linux}" in
59 linux)
60 mkdir --parents custom/p4
61 pushd custom/p4
3d319f2c
LS
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
522354d7
LS
64 chmod u+x p4d
65 chmod u+x p4
66 export PATH="$(pwd):$PATH"
67 popd
68 mkdir --parents custom/git-lfs
69 pushd custom/git-lfs
3d319f2c
LS
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 .
522354d7
LS
73 export PATH="$(pwd):$PATH"
74 popd
75 ;;
76 osx)
77 brew_force_set_latest_binary_hash () {
78 FORMULA=$1
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 /usr/local/Library/Taps/homebrew/homebrew-binary/$FORMULA.rb
82 }
83 brew update --quiet
84 brew tap homebrew/binary --quiet
85 brew_force_set_latest_binary_hash perforce
86 brew_force_set_latest_binary_hash perforce-server
e3efa94b
JS
87 # Uncomment this if you want to run perf tests:
88 # brew install gnu-time
522354d7
LS
89 brew install git-lfs perforce-server perforce gettext
90 brew link --force gettext
91 ;;
92 esac;
93 echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)";
94 p4d -V | grep Rev.;
95 echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)";
96 p4 -V | grep Rev.;
97 echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)";
98 git-lfs version;
6272ed31
LS
99 mkdir -p $HOME/travis-cache;
100 ln -s $HOME/travis-cache/.prove t/.prove;
522354d7
LS
101
102before_script: make --jobs=2
103
104script: make --quiet test
105
106after_failure:
107 - >
108 : '<-- Click here to see detailed test output! ';
109 for TEST_EXIT in t/test-results/*.exit;
110 do
111 if [ "$(cat "$TEST_EXIT")" != "0" ];
112 then
113 TEST_OUT="${TEST_EXIT%exit}out";
114 echo "------------------------------------------------------------------------";
115 echo "$(tput setaf 1)${TEST_OUT}...$(tput sgr0)";
116 echo "------------------------------------------------------------------------";
117 cat "${TEST_OUT}";
118 fi;
119 done;
120
121notifications:
122 email: false