forked from sosy-lab/java-smt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
78 lines (69 loc) · 2.34 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# This file is part of JavaSMT,
# an API wrapper for a collection of SMT solvers:
# https://github.com/sosy-lab/java-smt
#
# SPDX-FileCopyrightText: 2024 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.14" )) {
(new-object System.Net.WebClient).DownloadFile(
'https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.14-bin.zip',
'C:\ant-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\ant-bin.zip", "C:\ant")
}
- SET JAVA_HOME=C:\Program Files\Java\jdk14
- SET PATH=C:\ant\apache-ant-1.10.14\bin;%JAVA_HOME%\bin;%PATH%
- SET IVY_CACHE_DIR=C:\ivy
- echo %USERPROFILE%
- echo %PATH%
- java -version
build_script:
- ant build
# Windows does not allow symlinks, thus we need to copy native solver binaries
# to make it available for JUnit tests.
# See lib\native\x86_64-windows\README.md for details.
- copy lib\java\runtime-z3\*dll lib\native\x86_64-windows\
- copy lib\java\runtime-mathsat\*dll lib\native\x86_64-windows\
- copy lib\java\runtime-bitwuzla\*dll lib\native\x86_64-windows\
test_script:
- ant unit-tests
on_finish:
- ps: |
$wc = New-Object 'System.Net.WebClient'
$files = Get-ChildItem -Path ".\junit\TEST-*.xml" -Exclude "*VariableNames*"
$url = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
foreach($file in $files){
echo $file.FullName
$wc.UploadFile($url, $file.FullName)
}
- ps: |
$files = Get-ChildItem -Path ".\hs_err_pid*"
foreach($file in $files){
echo $file.FullName
Push-AppveyorArtifact $file.FullName -DeploymentName $file.name
}
- ps: |
$files = Get-ChildItem -Path ".\replay_pid*"
foreach($file in $files){
echo $file.FullName
Push-AppveyorArtifact $file.FullName -DeploymentName $file.name
}
- ps: |
7z a JUnit.html.zip JUnit.html
Push-AppveyorArtifact JUnit.html.zip -DeploymentName "JUnit Report"
cache:
- C:\ant
- C:\ivy
notifications:
- provider: Email
to:
on_build_success: false
on_build_status_changed: true