forked from jwilk-archive/ocrodjvu
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
65 lines (64 loc) · 1.63 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
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
dist: xenial
language: python
jobs:
include:
- python: "2.7"
env: CYTHON=0.22.1 PYDJVU=0.3.9 LXML=2.0 PYICU=1.4 HTML5LIB=0.95 PILLOW=1.0
dist: trusty
- python: "2.7"
env: SUBPROCESS32=3.2.7
- python: "2.7"
env: SUBPROCESS32=latest
addons:
apt:
packages:
- djvulibre-bin
- docbook-xml
- docbook-xsl
- libdjvulibre-dev
- libicu-dev
- libxml2-utils
- xsltproc
cache: pip
before_install:
- cython="cython${CYTHON:+==$CYTHON}"
- pydjvu="python-djvulibre${PYDJVU:+==$PYDJVU}"
- lxml="lxml${LXML:+==$LXML}"
- if [[ -z $SUBPROCESS32 ]]; then
if_subprocess32=:;
else
subprocess32="subprocess32==$SUBPROCESS32";
subprocess32="${subprocess32%==latest}";
fi
- pyicu="pyicu${PYICU:+==$PYICU}"
- html5lib="html5lib${HTML5LIB:+==$HTML5LIB}"
- pillow="pillow${PILLOW:+==$PILLOW}"
install:
- pip install --verbose $cython
- pip install --verbose $pydjvu
- $if_subprocess32 pip install --verbose $subprocess32
- pip install --verbose $lxml
- pip install --verbose $pyicu
- pip install --upgrade setuptools
- pip install $html5lib
- pip install --verbose $pillow
- pip install pydiatra
- pip install pyflakes
- pip install docutils
script:
- make test
- py2diatra .
- private/run-pyflakes
- make -C doc check
- make -C doc all
- make install PREFIX=$HOME/.local
- cd /
- djvu2hocr --version
- hocr2djvused --version
- ocrodjvu --version
- export MANPATH="$HOME/.local/share/man" MANWIDTH=80
- man 1 ocrodjvu | grep -A 10 -w OCRODJVU
- man 1 djvu2hocr | grep -A 10 -w DJVU2HOCR
- man 1 hocr2djvused | grep -A 10 -w HOCR2DJVUSED
- curl -fsS https://pypi.org/simple/ocrodjvu/; [ $? -eq 22 ]
# vim:ts=2 sts=2 sw=2 et