mirror of
https://github.com/unidoc/unioffice.git
synced 2025-05-08 19:29:25 +08:00

* 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>
13 lines
554 B
Bash
Executable File
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
|