execute automated tests but do not fail if there are errors

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2021-07-16 15:55:45 +02:00 committed by Matthieu Gallien (Rebase PR Action)
parent 360118634d
commit bbcfe56cfd
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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: