Skip to content

Commit

Permalink
appveyor.yml: Use local patched version of ctest-to-junit.xsl
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Feb 11, 2020
1 parent 2334558 commit d49e03e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ for:
- xvfb-run -- cmake --build . --target benchmark

after_test:
- curl -OL https://raw.githubusercontent.com/rpavlik/jenkins-ctest-plugin/master/ctest-to-junit.xsl
- xsltproc -o ctest-to-junit-results.xml ctest-to-junit.xsl Testing/*/Test.xml
- xsltproc -o ctest-to-junit-results.xml ../cmake/ctest-to-junit.xsl Testing/*/Test.xml
- curl -F '[email protected]' "https://ci.appveyor.com/api/testresults/junit/$APPVEYOR_JOB_ID"


Expand Down Expand Up @@ -218,8 +217,9 @@ for:
# Found at https://help.appveyor.com/discussions/suggestions/5298-support-ctest-xml-test-results
- ps: |
$ctest_xml = Get-ChildItem -Path Testing\*\Test.xml
$ctest_to_junit_xsl = Get-ChildItem -Path ..\cmake\ctest-to-junit.xsl
$XSLInputElement = New-Object System.Xml.Xsl.XslCompiledTransform
$XSLInputElement.Load("https://raw.githubusercontent.com/rpavlik/jenkins-ctest-plugin/master/ctest-to-junit.xsl")
$XSLInputElement.Load($ctest_to_junit_xsl)
$XSLInputElement.Transform((Resolve-Path $ctest_xml), (Join-Path (Resolve-Path .) "ctest-to-junit-results.xml"))
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\ctest-to-junit-results.xml))
Expand Down

0 comments on commit d49e03e

Please sign in to comment.