-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
39 lines (30 loc) · 945 Bytes
/
.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
# reference: https://www.appveyor.com/docs/appveyor-yml/
image: Visual Studio 2017 # https://www.appveyor.com/docs/windows-images-software/
version: "#{build} ({branch})"
branches:
except:
- /^\d+\.\d+\.\d+$/ # skip builds related to addTemporaryVersionTag
#region JAVA
environment:
matrix:
- JAVA_HOME: C:\Program Files\Java\jdk12
install:
- SET PATH=%JAVA_HOME%\bin;%PATH
- java --version
#endregion
#region GRADLE
build_script:
- gradlew.bat assemble
test_script:
- gradlew.bat check --stacktrace
cache:
- C:\Users\appveyor\.gradle
on_finish:
# upload test results via REST-api: https://github.com/appveyor/ci/issues/92#issuecomment-307242316
- ps: |
$wc = New-Object 'System.Net.WebClient'
Get-ChildItem . -Name -Recurse 'TEST-*.xml' |
Foreach-Object {
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $_))
}
#endregion