forked from sosy-lab/java-common-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
46 lines (38 loc) · 1.25 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: build {build} {branch}
os: Visual Studio 2015
clone_depth: 1
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\ant\apache-ant-1.9.9" )) {
(new-object System.Net.WebClient).DownloadFile(
'https://archive.apache.org/dist/ant/binaries/apache-ant-1.9.9-bin.zip',
'C:\ant-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\ant-bin.zip", "C:\ant")
}
- cmd: SET PATH=C:\ant\apache-ant-1.9.9\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET IVY_CACHE_DIR=C:\ivy
- cmd: echo %USERPROFILE%
- cmd: echo %PATH%
- cmd: java -version
build_script:
- ant build
test_script:
- ant unit-tests
on_finish:
- ps: |
$url = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
$file = '.\junit\TESTS-TestSuites.xml'
$webclient = New-Object 'System.Net.WebClient'
# uploads currently fail because of many tests (https://github.com/appveyor/ci/issues/2084)
try { $webclient.UploadFile($url, (Resolve-Path $file)) } catch { $_ }
cache:
- C:\ant
- C:\ivy
notifications:
- provider: Email
to:
on_build_success: false
on_build_status_changed: true