unioffice/.travis/validate-examples.sh
Vyacheslav Zgordan 0f98a7e893
Resolve UO-27, UO-28, UO-31 (#407)
* Fixes in CI (#406)

* Create .gitattributes

* Update .travis.yml

* Update .travis.yml

* travis fix

* only errors are printed in travis log

* spreadsheet errors fixed: duplicate ID in non-visual properties and lack of third axis in an example

* set-strict example fix

* build-examples.sh exits with error status in the case of build error

* redundant command deleted from script

* unneeded image relationships removed

* pptx validation errors fixes

* all output to travis

Co-authored-by: Gunnsteinn Hall <gunnsteinn.hall@gmail.com>
2020-06-23 09:24:02 +00:00

13 lines
554 B
Bash
Executable File

#!/bin/bash
find ../_examples -maxdepth 2 -mindepth 2 -exec sh -c "cd {}; echo running {}; ./main" \;
export PATH=$PATH:$HOME/dotnet
:> errors
find ../_examples -name "*.docx" $(printf "! -name %s " $(cat skip_files)) -exec ./dotnet_run.sh {} docx \;
find ../_examples -name "*.xlsx" $(printf "! -name %s " $(cat skip_files)) -exec ./dotnet_run.sh {} xlsx \;
find ../_examples -name "*.pptx" $(printf "! -name %s " $(cat skip_files)) -exec ./dotnet_run.sh {} pptx \;
if [[ $(wc -l errors) == "0 errors" ]]; then
exit 0
fi
echo "there are errors"
exit 1