forked from scta-texts/wodehamordinatio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
18 lines (16 loc) · 1.08 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
language: java
sudo: false
addons:
apt:
packages:
- parallel
before_install:
- unset _JAVA_OPTIONS
install:
- wget 'https://github.com/papyri/jing-trang/releases/download/xsd_bce_leap_years-1.0/jing.jar'
- mkdir -p schema/
- wget -O schema/critical.rng 'https://raw.githubusercontent.com/lombardpress/lombardpress-schema/1.0.0/src/out/critical.rng'
- wget -O schema/diplomatic.rng 'https://raw.githubusercontent.com/lombardpress/lombardpress-schema/1.0.0/src/out/diplomatic.rng'
- wget -O schema/tdf.rng 'https://raw.githubusercontent.com/scta/tdf-schema/master/src/tdf-0.rng'
script:
- for file in */*.xml; do schema=$(grep -o "lbp-.*-1.0.0" $file); if [[ $file = *"transcriptions.xml"* ]]; then echo $file; elif [[ $schema = *"diplomatic"* ]]; then echo "checking diplomatic for $file"; java -jar jing.jar schema/diplomatic.rng $file; if [[ $? -ne 0 ]]; then exit 1; fi; elif [[ $schema = *"critical"* ]]; then echo "checking critical for $file"; java -jar jing.jar schema/critical.rng $file; if [[ $? -ne 0 ]]; then exit 1; fi; else echo "nothing run"; fi; echo $?; done;