Skip to content

Commit 1e2b2c6

Browse files
committed
fix vale in the CI
undo the file change
1 parent 63de0fd commit 1e2b2c6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
- CAN_FAIL=true
5858
if: type IN (pull_request)
5959
name: "Run Vale against PR asciidoc files"
60+
language: minimal
6061
before_script:
6162
- gem install asciidoctor
6263
script:
@@ -65,7 +66,7 @@ jobs:
6566
- export PATH=./bin:"$PATH"
6667
- travis_retry vale sync # pull down VRH rules package
6768
- chmod +x ./scripts/check-with-vale.sh
68-
- travis_retry ./scripts/check-with-vale.sh $TRAVIS_PULL_REQUEST $TRAVIS_PULL_REQUEST_SHA
69+
- ./scripts/check-with-vale.sh
6970
# Commenting out to disable auto-merging of PRs
7071
# - stage: automerge
7172
# if: env(PR_AUTHOR)=openshift-cherrypick-robot

scripts/check-with-vale.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ -n "${FILES}" ] ;
1515
if [ "$TRAVIS" = true ] ; then
1616
#clean out conditional markup in Travis CI
1717
sed -i -e 's/ifdef::.*\|ifndef::.*\|ifeval::.*\|endif::.*/ /' ${FILES}
18-
vale ${FILES} --glob='*.adoc' --minAlertLevel=error --no-exit
18+
vale ${FILES} --glob='*.adoc' --minAlertLevel=error
1919
else
2020
vale ${FILES} --glob='*.adoc' --minAlertLevel=suggestion
2121
fi

0 commit comments

Comments
 (0)