forked from xspec/xspec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
102 lines (66 loc) · 3.02 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
environment:
global:
# full path to Saxon jar
SAXON_CP: '%TEMP%\xspec\saxon\saxon9he.jar'
# Ant version used in oXygen
ANT_VERSION: 1.9.8
# full path to XML Resolver jar
XML_RESOLVER_CP: '%TEMP%\xspec\xml-resolver\resolver.jar'
matrix:
# latest Saxon 9.8 version and full path to Jing jar
- SAXON_VERSION: 9.8.0-7
JING_CP: '%TEMP%\xspec\jing\jing.jar'
# latest Saxon 9.7 version
- SAXON_VERSION: 9.7.0-21
XMLCALABASH_VERSION: 1.1.21-97
BASEX_VERSION: 8.6.4
# Saxon version used in oXygen
- SAXON_VERSION: 9.7.0-19
install:
- ps: >-
# install Saxon
curl.exe -fsSL --create-dirs --retry 5 -o "${env:SAXON_CP}" "http://central.maven.org/maven2/net/sf/saxon/Saxon-HE/${env:SAXON_VERSION}/Saxon-HE-${env:SAXON_VERSION}.jar"
# install XML Calabash
if( -Not( Test-Path -Path env:\XMLCALABASH_VERSION ) ) {
echo "XMLCalabash will not be installed as it uses a higher version of Saxon"
}
else {
curl.exe -fsSL --create-dirs --retry 5 -o "${env:TEMP}\xspec\xmlcalabash\xmlcalabash.zip" "https://github.com/ndw/xmlcalabash1/releases/download/${env:XMLCALABASH_VERSION}/xmlcalabash-${env:XMLCALABASH_VERSION}.zip"
7z x "${env:TEMP}\xspec\xmlcalabash\xmlcalabash.zip" -o"${env:TEMP}\xspec\xmlcalabash"
${env:XMLCALABASH_CP} = "${env:TEMP}\xspec\xmlcalabash\xmlcalabash-${env:XMLCALABASH_VERSION}\xmlcalabash-${env:XMLCALABASH_VERSION}.jar"
}
# install BaseX
if( -Not( Test-Path -Path env:\BASEX_VERSION ) ) {
echo "BaseX will not be installed as it requires to run XMLCalabash with a higher version of Saxon";
}
else {
${env:BASEX_CP} = "${env:TEMP}\xspec\basex\basex.jar"
curl.exe -fsSL --create-dirs --retry 5 -o "${env:BASEX_CP}" "http://files.basex.org/maven/org/basex/basex/${env:BASEX_VERSION}/basex-${env:BASEX_VERSION}.jar"
}
# install Ant without installing JDK
appveyor-retry choco install ant --ignore-dependencies --no-progress --version "${env:ANT_VERSION}"
# install XML Resolver
curl.exe -fsSL --create-dirs --retry 5 -o "${env:XML_RESOLVER_CP}" "http://central.maven.org/maven2/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar"
# install Jing
if( -Not( Test-Path -Path env:\JING_CP ) ) {
echo "Jing will not be installed"
}
else {
curl.exe -fsSL --create-dirs --retry 5 -o "${env:JING_CP}" "http://central.maven.org/maven2/com/thaiopensource/jing/20091111/jing-20091111.jar"
}
build: off
test_script:
- cmd: >-
rem Print Java version
java -version
rem Print Ant version
ant -version
rem Print Saxon version
java -cp "%SAXON_CP%" net.sf.saxon.Transform 2>&1 | find /i "saxon-"
rem execute xspec.bat unit tests
test\xspec-bat.cmd
rem execute XSpec unit tests
test\run-xspec-tests-ant.cmd -silent
rem execute XSpec end-to-end tests
test\end-to-end\run-e2e-tests.cmd
deploy: off