mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-23 08:46:56 +00:00
ci(validate-docx-golden-tests2): fail on errors
The validator just prints errors, but always exited with nonzero. Signed-off-by: Edwin Török <edwin@etorok.net>
This commit is contained in:
committed by
John MacFarlane
parent
0e86a84e33
commit
c6892bec24
@@ -249,7 +249,7 @@ validate-docx-golden-tests2: ## validate docx golden tests using OOXMLValidator
|
||||
test -d ./OOXML-Validator || \
|
||||
(git clone https://github.com/mikeebowen/OOXML-Validator.git \
|
||||
&& cd OOXML-Validator && dotnet build --configuration=Release)
|
||||
dotnet run --configuration=Release --no-build --no-restore --project OOXML-Validator/OOXMLValidatorCLI -- test/docx/golden -r | json_reformat
|
||||
sh ./tools/validate-docx2.sh test/docx/golden/
|
||||
.PHONY: validate-docx-golden-tests2
|
||||
|
||||
validate-epub: ## generate an epub and validate it with epubcheck
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
(for i in "$@"; do
|
||||
dotnet run --configuration=Release --no-build --no-restore --project OOXML-Validator/OOXMLValidatorCLI -- "${i}" -r
|
||||
done) >validation
|
||||
json_reformat -s <validation
|
||||
|
||||
[ $(cat validation | wc -c) = 2 ]
|
||||
Reference in New Issue
Block a user