@@ -68,9 +68,8 @@ matrix:
68
68
before_script :
69
69
- mkdir -p SCANCODE
70
70
- mkdir -p SCANCODE_NEW_FILES
71
- # Fetch remaining information needed for branch comparison
72
- - git fetch --all --unshallow --tags
73
- - git fetch origin "${TRAVIS_BRANCH}"
71
+ # Fetch the base branch to compare against
72
+ - git fetch origin "${TRAVIS_BRANCH}" --depth=1
74
73
script :
75
74
# scancode does not support list of files, only one file or directory
76
75
# we use SCANCODE directory for all changed files (their copies with full tree)
@@ -130,9 +129,8 @@ matrix:
130
129
export PATH="${PWD}/bin:${PATH}";
131
130
cd -
132
131
- astyle --version
133
- # Fetch remaining information needed for branch comparison
134
- - git fetch --all --unshallow --tags
135
- - git fetch origin "${TRAVIS_BRANCH}"
132
+ # Fetch the base branch to compare against
133
+ - git fetch origin "${TRAVIS_BRANCH}" --depth=1
136
134
script :
137
135
- >-
138
136
git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
@@ -246,9 +244,8 @@ matrix:
246
244
- python -m pip install --upgrade setuptools==40.4.3
247
245
- pip install tabulate argparse
248
246
- pip list --verbose
249
- # Fetch remaining information needed for branch comparison
250
- - git fetch --all --unshallow --tags
251
- - git fetch origin "${TRAVIS_BRANCH}"
247
+ # Fetch the base branch to compare against
248
+ - git fetch origin "${TRAVIS_BRANCH}" --depth=1
252
249
script :
253
250
- >-
254
251
git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
@@ -320,12 +317,15 @@ matrix:
320
317
stage : " Frozen tools check"
321
318
name : " Frozen tools check"
322
319
env : NAME=frozen_tools_check
320
+ before_script :
321
+ # Fetch the base branch to compare against
322
+ - git fetch origin "${TRAVIS_BRANCH}" --depth=1
323
323
script :
324
324
# Reject any changes to tools that would require a re-release of the
325
325
# tools for the online compiler.
326
326
- >-
327
327
frozen_files=`\
328
- git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
328
+ git diff --name-only FETCH_HEAD..HEAD \
329
329
| egrep \
330
330
-e "^tools/build_api*" \
331
331
-e "^tools/config*" \
0 commit comments