CI: work around transient OS X failures.

Travis OS X builders randomly break in ways that aren't reproducible
outside of their VMs, have no Google hits, and are very aggravating;
the two common ones are:
  * hdiutil: create failed - Resource busy
  * make[2]: write error

This commit drags SNR back into a tolerable range with a gross hack.
This commit is contained in:
whitequark 2016-04-21 04:07:19 +00:00
parent ddbb041995
commit ab710f7ed3

View File

@ -5,4 +5,10 @@ if echo $TRAVIS_TAG | grep ^release-; then BUILD_TYPE=RelWithDebInfo; else BUILD
mkdir build
cd build
cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
make VERBOSE=1
if ! make VERBOSE=1; then
echo "Sigh, transient build failure. Retrying..."
if ! make VERBOSE=1; then
echo "Okay, this is probably an actual bug."
exit 1
fi
fi