Skip to content

Commit c21fc0d

Browse files
committed
fix travis 2.0
1 parent 7cc185d commit c21fc0d

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ cache:
66
# env:
77
# - PR_AUTHOR=${TRAVIS_PULL_REQUEST_SLUG::-15}
88
git:
9-
depth: 2
9+
depth: 10
1010
jobs:
1111
allow_failures:
1212
env:
1313
- CAN_FAIL=true
14-
1514
include:
1615
- stage: validate-and-build
1716
name: "Validate and build"

scripts/get-updated-distros.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,8 @@
33
# Returns a list of updated _topic_map.yml files.
44
# The list includes any topic maps that are themselves modified, and indirectly modifed topic maps where incldued AsciiDoc files have been updated.
55

6-
# Handle the git diff differently for Travis and local
76
# Get the *.adoc and distro maps files in the pull request
8-
if [ "$TRAVIS" = true ] ; then
9-
FILES=$(git diff --name-only HEAD $TRAVIS_BRANCH --diff-filter=d "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
10-
11-
else
12-
FILES=$(git diff --name-only HEAD@{1} --diff-filter=d "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
13-
fi
7+
FILES=$(git diff --name-only HEAD@{1} --diff-filter=d "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
148

159
REPO_PATH=$(git rev-parse --show-toplevel)
1610

0 commit comments

Comments
 (0)