Skip to content

Commit

Permalink
Workaround Travis CI build 'failures' caused by network errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thp committed Sep 10, 2017
1 parent 388c6fb commit 3405a22
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/macos/build-macos
Expand Up @@ -46,7 +46,12 @@ if [ ! -d $OPENCV_INSTALL_DIR ]; then
cd opencv

# Patch for Mac OS X deprecation of QTKit & adoption of AVFoundation
git fetch https://github.com/opencv/opencv.git +pull/7266/head:pr7266
while ! git fetch https://github.com/opencv/opencv.git +pull/7266/head:pr7266; do
# This workaround is in place since Travis CI often has failed due to network errors
echo "Git fetch failed, retrying..."
sleep 2
done

git checkout pr7266

rm -rf build
Expand Down

0 comments on commit 3405a22

Please sign in to comment.