-
Notifications
You must be signed in to change notification settings - Fork 11
/
.appveyor.yml
48 lines (40 loc) · 1.39 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
47
48
# This file is part of SoSy-Lab Common,
# a library of useful utilities:
# https://github.com/sosy-lab/java-common-lib
#
# SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org>
#
# SPDX-License-Identifier: Apache-2.0
version: build {build} {branch}
os: Visual Studio 2019
clone_depth: 1
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\ant\apache-ant-1.10.12" )) {
(new-object System.Net.WebClient).DownloadFile(
'https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.12-bin.zip',
'C:\ant-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\ant-bin.zip", "C:\ant")
}
- cmd: SET JAVA_HOME=C:\Program Files\Java\jdk17
- cmd: SET PATH=C:\ant\apache-ant-1.10.12\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