unioffice/build-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

10 lines
271 B
Bash
Executable File

#!/bin/bash
go get -u github.com/go-ole/go-ole/oleutil
:> build_errors
find _examples/ -maxdepth 2 -mindepth 2 -exec sh -c "cd {}; echo building {}; go build -i main.go" 2>>build_errors \;
if [[ $(wc -l build_errors | awk '{print $1}') == "0" ]]; then
exit 0
fi
exit 1