forked from uwolfer/gerrit-rest-java-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
35 lines (29 loc) · 1.17 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
environment:
MVN_VERSION: 3.3.9
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\maven" )) {
(New-Object 'System.Net.WebClient').DownloadFile("http://www.us.apache.org/dist/maven/maven-3/$($env:MVN_VERSION)/binaries/apache-maven-$($env:MVN_VERSION)-bin.zip", "C:\maven-bin.zip")
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
}
- set PATH=C:\maven\apache-maven-%MVN_VERSION%\bin;%PATH%
- cmd: mvn --version
- cmd: java -version
cache:
- C:\maven\
- C:\Users\appveyor\.m2\repository -> pom.xml
build_script:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V # This is what Travis CI does by default.
test_script:
- mvn test -B # This is what Travis CI does by default.
after_test:
- ps: |
$url = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
$files = Get-ChildItem '.\target\surefire-reports\junitreports\TEST-*.xml'
ForEach ($file in $files) {
(New-Object 'System.Net.WebClient').UploadFile($url, (Resolve-Path $file))
}
artifacts:
- path: target\*.jar
name: Java archive