-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
23 lines (21 loc) · 1.33 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: 0.6.{build}
environment:
matrix:
- Configuration: Debug
Platform: Win32
BuildEngine: vc
- Configuration: Release
Platform: Win32
BuildEngine: vc
before_build:
- cmd: >-
if "%platform%" == "x64" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat"
if "%platform%" == "x64" (set qtplatform=msvc2015_64) else (set qtplatform=msvc2015)
"C:\Qt\5.7\%qtplatform%\bin\qmake.exe" -r -tp "%buildengine%"
build:
parallel: true
verbosity: minimal
test_script:
- ps: "if($env:platform -eq \"x64\") {\n $env:path = \"C:\\Qt\\5.7\\msvc2015_64\\bin\"\n} else {\n $env:path = \"C:\\Qt\\5.7\\msvc2015\\bin\"\n}\nls \"Tests\\$env:Configuration\" -filter \"*.exe\" |\n% { \n $filename = $_.FullName\n &$filename \"-functions\" |\n % {\n $testName = $_.trim(\"()\")\n Add-AppveyorTest -Name $testName -Framework \"xUnit\" -Filename $filename -Outcome \"Running\"\n $time = Measure-Command { &$filename $testName | Out-Default }\n if($LastExitCode -eq 0)\n {\n $result = \"Passed\"\n }\n else\n {\n $result = \"Failed\"\n }\n Update-AppveyorTest -Name $testName -Framework \"xUnit\" -Filename $filename -Outcome $result -Duration $time.Milliseconds\n }\n}"
artifacts:
- path: App\$(configuration)\*.exe