forked from uwolfer/gerrit-rest-java-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
27 lines (21 loc) · 773 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
environment:
MVN_VERSION: 3.5.0
install:
- cinst maven --version=%MVN_VERSION% -y
- set PATH=C:\tools\apache-maven-%MVN_VERSION%\bin;%PATH%
cache:
- 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