Răsfoiți Sursa

For AppVeyor - add rudimentary retry when installing packages.
Close #1078.
[ci only: AppVeyor] [ci package]

Yao Wei Tjong 姚伟忠 10 ani în urmă
părinte
comite
552ff29418
1 a modificat fișierele cu 6 adăugiri și 2 ștergeri
  1. 6 2
      .appveyor.yml

+ 6 - 2
.appveyor.yml

@@ -46,7 +46,11 @@ install:
           if ($env:APPVEYOR_REPO_TAG -eq "true") { $env:RELEASE_TAG = $env:APPVEYOR_REPO_TAG_NAME } else { git fetch -q --unshallow };
           if ($env:APPVEYOR_REPO_TAG -eq "true") { $env:RELEASE_TAG = $env:APPVEYOR_REPO_TAG_NAME } else { git fetch -q --unshallow };
           if ($env:URHO3D_LIB_TYPE -eq "STATIC" -and ($env:Platform -eq "x64")) { $env:SF_DEFAULT = "windows:Windows-64bit-STATIC-3D11.zip" };
           if ($env:URHO3D_LIB_TYPE -eq "STATIC" -and ($env:Platform -eq "x64")) { $env:SF_DEFAULT = "windows:Windows-64bit-STATIC-3D11.zip" };
           $env:PACKAGE_UPLOAD = "1";
           $env:PACKAGE_UPLOAD = "1";
-          choco install doxygen.portable graphviz.portable >$null;
+          do
+          {
+            "Installing doxygen and graphviz...";
+            choco install doxygen.portable graphviz.portable >$null;
+          } until ($?);
         }
         }
 build_script:
 build_script:
   - if "%PLATFORM%" == "x64" set "OPTS=URHO3D_64BIT=1"
   - if "%PLATFORM%" == "x64" set "OPTS=URHO3D_64BIT=1"
@@ -56,7 +60,7 @@ build_script:
   - rake make config=%Configuration%
   - rake make config=%Configuration%
 # Could not run test target yet as AppVeyor does not currently allow its service to interact with desktop
 # Could not run test target yet as AppVeyor does not currently allow its service to interact with desktop
 # - rake make config=%Configuration% target=RUN_TESTS
 # - rake make config=%Configuration% target=RUN_TESTS
-  - if "%PACKAGE_UPLOAD%" == "1" rake ci_appveyor_package_upload
+  - if "%PACKAGE_UPLOAD%" == "1" (rake ci_appveyor_package_upload) else (rake scaffolding dir=..\MyProject project=MyProject && cd ..\MyProject && rake cmake vs2015 %OPTS% URHO3D_HOME=..\native-Build build_tree=..\MyProject-native-Build && rake make config=%Configuration% build_tree=..\MyProject-native-Build)
 test: off
 test: off
 artifacts:
 artifacts:
   - path: native-Build\*.zip
   - path: native-Build\*.zip