Skip to content

Commit 487a05f

Browse files
committed
Merge branch 'sg/travis-fixes'
TravisCI build updates. * sg/travis-fixes: travis-ci: don't build Git for the static analysis job travis-ci: fix running P4 and Git LFS tests in Linux build jobs
2 parents 8cc6332 + c215495 commit 487a05f

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ matrix:
7171
packages:
7272
- coccinelle
7373
before_install:
74-
# "before_script" that builds Git is inherited from base job
74+
before_script:
7575
script: ci/run-static-analysis.sh
7676
after_failure:
7777
- env: Documentation

ci/install-dependencies.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,18 @@ case "${TRAVIS_OS_NAME:-linux}" in
1212
linux)
1313
export GIT_TEST_HTTPD=YesPlease
1414

15-
mkdir --parents custom/p4
16-
pushd custom/p4
15+
mkdir --parents "$P4_PATH"
16+
pushd "$P4_PATH"
1717
wget --quiet "$P4WHENCE/bin.linux26x86_64/p4d"
1818
wget --quiet "$P4WHENCE/bin.linux26x86_64/p4"
1919
chmod u+x p4d
2020
chmod u+x p4
21-
export PATH="$(pwd):$PATH"
2221
popd
23-
mkdir --parents custom/git-lfs
24-
pushd custom/git-lfs
22+
mkdir --parents "$GIT_LFS_PATH"
23+
pushd "$GIT_LFS_PATH"
2524
wget --quiet "$LFSWHENCE/git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
2625
tar --extract --gunzip --file "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
2726
cp git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs .
28-
export PATH="$(pwd):$PATH"
2927
popd
3028
;;
3129
osx)

ci/lib-travisci.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,11 @@ skip_branch_tip_with_tag () {
2626
set -e
2727

2828
skip_branch_tip_with_tag
29+
30+
case "${TRAVIS_OS_NAME:-linux}" in
31+
linux)
32+
P4_PATH="$(pwd)/custom/p4"
33+
GIT_LFS_PATH="$(pwd)/custom/git-lfs"
34+
export PATH="$GIT_LFS_PATH:$P4_PATH:$PATH"
35+
;;
36+
esac

0 commit comments

Comments
 (0)