Line | |
---|
1 | version: '{build}'
|
---|
2 | image: Visual Studio 2017
|
---|
3 | install:
|
---|
4 | - cinst ant
|
---|
5 | - refreshenv
|
---|
6 | build_script:
|
---|
7 | - ant compile dist distmac checkstyle pmd spotbugs
|
---|
8 | test_script:
|
---|
9 | - ant test-unit-hardfail
|
---|
10 | on_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
|
---|
20 | artifacts:
|
---|
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.