Kaynağa Gözat

execute automated tests but do not fail if there are errors

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Matthieu Gallien 4 yıl önce
ebeveyn
işleme
bbcfe56cfd
2 değiştirilmiş dosya ile 9 ekleme ve 1 silme
  1. 2 0
      appveyor.ini
  2. 7 1
      appveyor.yml

+ 2 - 0
appveyor.ini

@@ -45,6 +45,8 @@ Packager/CacheDir = ${Variables:Root}\cache
 [BlueprintSettings]
 # don't try to pip install on the ci
 python-modules.ignored = True
+nextcloud-client.buildTests = True
+binary/mysql.useMariaDB = False
 
 [windows-msvc2019_64-cl]
 QtSDK/Compiler = msvc2019_64

+ 7 - 1
appveyor.yml

@@ -15,6 +15,10 @@ init:
         & "C:\Python39-x64\python.exe" "C:\CraftMaster\CraftMaster\CraftMaster.py" --config "$env:APPVEYOR_BUILD_FOLDER\appveyor.ini" --variables "APPVEYOR_BUILD_FOLDER=$env:APPVEYOR_BUILD_FOLDER" --target $env:TARGET -c $args
         if($LASTEXITCODE -ne 0) {exit $LASTEXITCODE}
     }
+    function crafttests() {
+        cmd /C "echo %PATH%"
+        & "C:\Python39-x64\python.exe" "C:\CraftMaster\CraftMaster\CraftMaster.py" --config "$env:APPVEYOR_BUILD_FOLDER\appveyor.ini" --variables "APPVEYOR_BUILD_FOLDER=$env:APPVEYOR_BUILD_FOLDER" --target $env:TARGET -c $args
+    }
 
 install:
 - ps: |
@@ -32,7 +36,9 @@ build_script:
     cp C:\CraftMaster\windows-msvc2019_64-cl\tmp\*.7z $env:APPVEYOR_BUILD_FOLDER
     cp C:\CraftMaster\windows-msvc2019_64-cl\tmp\*.exe $env:APPVEYOR_BUILD_FOLDER
 
-test: off
+test_script:
+- ps: |
+    crafttests --test --src-dir $env:APPVEYOR_BUILD_FOLDER nextcloud-client
 
 environment:
     matrix: