소스 검색

Updated test output to log to xml and to upload those results appropriately, so they show up in AppVeyor correctly as tests at the end.

Jared Mulconry 8 년 전
부모
커밋
52da099738
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      appveyor.yml

+ 4 - 1
appveyor.yml

@@ -40,7 +40,10 @@ after_build:
   - 7z a assimp.7z %APPVEYOR_BUILD_FOLDER%\bin\%CONFIGURATION%\* %APPVEYOR_BUILD_FOLDER%\lib\%CONFIGURATION%\*
   - 7z a assimp.7z %APPVEYOR_BUILD_FOLDER%\bin\%CONFIGURATION%\* %APPVEYOR_BUILD_FOLDER%\lib\%CONFIGURATION%\*
 
 
 test_script:
 test_script:
-  - cmd: bin\%CONFIGURATION%\unit.exe
+  - cmd: bin\%CONFIGURATION%\unit.exe -gtest_output=xml:testout.xml
+
+after_test:
+  - ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\testout.xml))
   
   
 artifacts:
 artifacts:
   - path: assimp.7z
   - path: assimp.7z