Skip to content

Instantly share code, notes, and snippets.

@IlyaFinkelshteyn
Created January 3, 2018 01:37
Show Gist options
  • Save IlyaFinkelshteyn/237ef33c8c94057f0c4af1155e9bb043 to your computer and use it in GitHub Desktop.
Save IlyaFinkelshteyn/237ef33c8c94057f0c4af1155e9bb043 to your computer and use it in GitHub Desktop.
build: off
test_script:
- ps: |
Start-FileDownload https://issues.jenkins-ci.org/secure/attachment/23640/Test.xml
$XSLInputElement = New-Object System.Xml.Xsl.XslCompiledTransform
$XSLInputElement.Load("https://raw.githubusercontent.com/rpavlik/jenkins-ctest-plugin/master/ctest-to-junit.xsl")
$XSLInputElement.Transform((Resolve-Path .\Test.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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment