forked from kotest/kotest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
38 lines (31 loc) · 1.07 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
skip_branch_with_pr: true
environment:
HOME: $(HOMEDRIVE)$(HOMEPATH)
cache:
- $(HOME)\.gradle\caches\build-cache-1
- $(HOME)\.gradle\caches\jars-1
- $(HOME)\.gradle\caches\jars-2
- $(HOME)\.gradle\caches\jars-3
- $(HOME)\.gradle\caches\modules-2
- $(HOME)\.gradle\caches\transforms-1
- $(HOME)\.gradle\wrapper\dists
- $(HOME)\.m2\repository
clone_depth: 50
configuration:
- Java8
- Java9
# Do something useful here to override the default MSBuild (which would fail otherwise).
build_script:
- if not exist %HOME%\.gradle mkdir %HOME%\.gradle
- if %CONFIGURATION%==Java9 echo org.gradle.java.home=C:/Program Files/Java/jdk9>%HOME%\.gradle\gradle.properties
- gradlew --info
test_script:
- gradlew test
on_finish:
- gradlew --stop # Fix "fileHashes.bin" being used by another process.
- ps: |
$url = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
$pattern = '**\build\test-results\**\TEST-*.xml'
foreach ($file in (Resolve-Path $pattern)) {
(New-Object 'System.Net.WebClient').UploadFile($url, $file)
}