source: josm/trunk/appveyor.yml@ 14521

Last change on this file since 14521 was 14179, checked in by Don-vip, 6 years ago

fix #16680 - Unit tests: fix for windows (patch by ris)

File size: 822 bytes
Line 
1version: '{build}'
2image: Visual Studio 2017
3install:
4 - cinst ant
5 - refreshenv
6build_script:
7 - ant compile dist distmac checkstyle pmd spotbugs
8test_script:
9 - ant test-unit-hardfail
10on_finish:
11 - ps: |
12 $wc = New-Object 'System.Net.WebClient'
13 Get-ChildItem . -Name -Recurse 'TEST-*.xml' |
14 Foreach-Object {
15 $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $_))
16 }
17 # we want to push test result artifact even if the tests fail, so uploading manually
18 - 7z a test-results.zip test\report\TEST*.xml
19 - ps: Push-AppveyorArtifact test-results.zip
20artifacts:
21 - path: dist\josm-custom.*
22 - path: checkstyle-josm.xml
23 - path: pmd-josm.xml
24 - path: spotbugs-josm.xml
25 - path: hs_err_pid*.log
Note: See TracBrowser for help on using the repository browser.