forked from eXist-db/exist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
36 lines (30 loc) · 1.29 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
version: '{branch}-{build}'
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
JAVA_HOME: C:\Program Files\Java\jdk9
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
JAVA_HOME: /usr/lib/jvm/java-9-openjdk-amd64
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
JAVA_HOME: /usr/lib/jvm/java-10-openjdk-amd64
install:
- cmd: set EXIST_HOME=%APPVEYOR_BUILD_FOLDER%
- sh: export EXIST_HOME=$APPVEYOR_BUILD_FOLDER
build_script:
- cmd: build.bat
- sh: cd $EXIST_HOME && ./build.sh clean && ./build.sh
test_script:
- cmd: build.bat -Dexist.autodeploy=off -Dtest.haltonerror=true -Dtest.haltonfailure=true test
- sh: cd $EXIST_HOME && ./build.sh -Dexist.autodeploy=off -Dtest.haltonerror=true -Dtest.haltonfailure=true test
after_test:
- ps: |
$wc = New-Object 'System.Net.WebClient'
foreach ($file in Get-ChildItem -Path "$($env:APPVEYOR_BUILD_FOLDER)\test\junit\data\" -Filter *.xml) {
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", $file.FullName)
}
artifacts:
- path: test\junit