Просмотр исходного кода

CI: Retry failed downloads

If all retries fail, stop the build.
juvester 9 лет назад
Родитель
Сommit
e99c06ad6a
2 измененных файлов с 8 добавлено и 5 удалено
  1. 7 4
      CI/install-dependencies-osx.sh
  2. 1 1
      appveyor.yml

+ 7 - 4
CI/install-dependencies-osx.sh

@@ -1,7 +1,10 @@
+# Exit if something fails
+set -e
+
 # Leave obs-studio folder
 cd ../
 
-curl -L -O https://s3-us-west-2.amazonaws.com/obs-nightly/Packages.pkg
+curl -L -O https://s3-us-west-2.amazonaws.com/obs-nightly/Packages.pkg -f --retry 5 -C -
 sudo installer -pkg ./Packages.pkg -target /
 
 brew update
@@ -9,14 +12,14 @@ brew update
 #Base OBS Deps
 brew install qt5
 
-curl -L -O https://s3-us-west-2.amazonaws.com/obs-nightly/osx-deps.tar.gz
+curl -L -O https://s3-us-west-2.amazonaws.com/obs-nightly/osx-deps.tar.gz -f --retry 5 -C -
 tar -xf ./osx-deps.tar.gz -C /tmp
 
-curl -L -o vlc-master.zip https://github.com/videolan/vlc/archive/master.zip
+curl -L -o vlc-master.zip https://github.com/videolan/vlc/archive/master.zip -f --retry 5 -C -
 unzip -q ./vlc-master.zip
 
 # CEF Stuff
-curl -kLO http://opensource.spotify.com/cefbuilds/cef_binary_3.2883.1540.gedbfb20_macosx64.tar.bz2
+curl -kLO http://opensource.spotify.com/cefbuilds/cef_binary_3.2883.1540.gedbfb20_macosx64.tar.bz2 -f --retry 5 -C -
 tar -xf ./cef_binary_3.2883.1540.gedbfb20_macosx64.tar.bz2
 cd ./cef_binary_3.2883.1540.gedbfb20_macosx64
 mkdir build

+ 1 - 1
appveyor.yml

@@ -4,7 +4,7 @@ environment:
 install:
   - git submodule update --init --recursive
   - git clone https://github.com/videolan/vlc.git
-  - curl -kLO https://obsproject.com/downloads/dependencies2015.zip
+  - curl -kLO https://obsproject.com/downloads/dependencies2015.zip -f --retry 5 -C -
   - 7z x dependencies2015.zip -odependencies2015
   - set DepsPath32=%CD%\dependencies2015\win32
   - set DepsPath64=%CD%\dependencies2015\win64