Skip to content

Commit 3d319f2

Browse files
larsxschneidergitster
authored andcommitted
travis-ci: express Linux/OS X dependency versions more clearly
The Git Travis CI OSX build always installs the latest versions of Git LFS and Perforce via brew and the Linux build installs fixed versions. Consequently new LFS/Perforce versions can break the OS X build even if there is no change in Git. Signed-off-by: Lars Schneider <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 31f3c86 commit 3d319f2

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.travis.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ addons:
2222
env:
2323
global:
2424
- DEVELOPER=1
25-
- P4_VERSION="16.1"
26-
- GIT_LFS_VERSION="1.2.0"
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"
2730
- DEFAULT_TEST_TARGET=prove
2831
- GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
2932
- GIT_TEST_OPTS="--verbose --tee"
@@ -38,17 +41,17 @@ before_install:
3841
linux)
3942
mkdir --parents custom/p4
4043
pushd custom/p4
41-
wget --quiet http://filehost.perforce.com/perforce/r$P4_VERSION/bin.linux26x86_64/p4d
42-
wget --quiet http://filehost.perforce.com/perforce/r$P4_VERSION/bin.linux26x86_64/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
4346
chmod u+x p4d
4447
chmod u+x p4
4548
export PATH="$(pwd):$PATH"
4649
popd
4750
mkdir --parents custom/git-lfs
4851
pushd custom/git-lfs
49-
wget --quiet https://github.com/github/git-lfs/releases/download/v$GIT_LFS_VERSION/git-lfs-linux-amd64-$GIT_LFS_VERSION.tar.gz
50-
tar --extract --gunzip --file "git-lfs-linux-amd64-$GIT_LFS_VERSION.tar.gz"
51-
cp git-lfs-$GIT_LFS_VERSION/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 .
5255
export PATH="$(pwd):$PATH"
5356
popd
5457
;;

0 commit comments

Comments
 (0)