This repository has been archived by the owner on Nov 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
/
.travis.yml
39 lines (36 loc) · 1.62 KB
/
.travis.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
language: generic
env:
global:
# XSpec version
- XSPEC_VERSION=1.0.0
#- XSPEC_HOME=/tmp/schematron/xspec/
# full path to Saxon jar
- SAXON_CP=/tmp/schematron/saxon/saxon9he.jar
# Ant version used in oXygen
- ANT_VERSION=1.9.8
# full path to XML Resolver jar
- XML_RESOLVER_CP=/tmp/schematron/xml-resolver/resolver.jar
matrix:
# latest Saxon 9.8 version and full path to Jing jar
- SAXON_VERSION=9.8.0-7
JING_CP=/tmp/schematron/jing/jing.jar
before_install:
- unset _JAVA_OPTIONS
before_script:
# install XSpec
- curl -fsSL --create-dirs -o /tmp/schematron/xspec/xspec.zip https://github.com/xspec/xspec/archive/v${XSPEC_VERSION}.zip;
- unzip /tmp/schematron/xspec/xspec.zip -d /tmp/schematron/xspec;
- export XSPEC_HOME=/tmp/schematron/xspec/xspec-${XSPEC_VERSION};
# install Saxon
- curl -fsSL --create-dirs -o ${SAXON_CP} http://central.maven.org/maven2/net/sf/saxon/Saxon-HE/${SAXON_VERSION}/Saxon-HE-${SAXON_VERSION}.jar
# install Ant
- curl -fsSL --create-dirs -o /tmp/schematron/ant/ant.tar.gz http://archive.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz
- tar xf /tmp/schematron/ant/ant.tar.gz -C /tmp/schematron/ant;
- export PATH=/tmp/schematron/ant/apache-ant-${ANT_VERSION}/bin:{$PATH}
# install XML Resolver
- curl -fsSL --create-dirs -o ${XML_RESOLVER_CP} http://central.maven.org/maven2/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar
script:
- ant -version
- cd trunk/schematron/test
- echo "execute bats unit tests"
- bats --tap schematron.bats