mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
fix travis 2.0
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
00b7470594
commit
712adea4fd
@@ -6,12 +6,11 @@ cache:
|
||||
# env:
|
||||
# - PR_AUTHOR=${TRAVIS_PULL_REQUEST_SLUG::-15}
|
||||
git:
|
||||
depth: 2
|
||||
depth: 10
|
||||
jobs:
|
||||
allow_failures:
|
||||
env:
|
||||
- CAN_FAIL=true
|
||||
|
||||
include:
|
||||
- stage: validate-and-build
|
||||
name: "Validate and build"
|
||||
|
||||
@@ -3,14 +3,8 @@
|
||||
# Returns a list of updated _topic_map.yml files.
|
||||
# The list includes any topic maps that are themselves modified, and indirectly modifed topic maps where incldued AsciiDoc files have been updated.
|
||||
|
||||
# Handle the git diff differently for Travis and local
|
||||
# Get the *.adoc and distro maps files in the pull request
|
||||
if [ "$TRAVIS" = true ] ; then
|
||||
FILES=$(git diff --name-only HEAD $TRAVIS_BRANCH --diff-filter=d "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
|
||||
|
||||
else
|
||||
FILES=$(git diff --name-only HEAD@{1} --diff-filter=d "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
|
||||
fi
|
||||
FILES=$(git diff --name-only HEAD@{1} --diff-filter=d "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
|
||||
|
||||
REPO_PATH=$(git rev-parse --show-toplevel)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user