forked from pdf2htmlEX/pdf2htmlEX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
130 lines (117 loc) · 3.06 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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
language: cpp
sudo: true
os:
- linux
- osx
env:
global:
- POPPLER_NAME="poppler-0.63.0"
- POPPLER_SOURCE="https://gitlab.freedesktop.org/poppler/poppler.git"
- FONTFORGE_SOURCE="https://github.com/fontforge/fontforge.git"
- LIBUNINAMESLIST_SOURCE="https://github.com/fontforge/libuninameslist.git"
compiler: gcc
addons:
apt:
update: true
packages:
- build-essential
- autoconf
- gcc
- pkg-config
- git
- cmake
- ca-certificates
- libfreetype6-dev
# Poppler-specific packages
- libfontconfig1-dev
- libjpeg-dev
- libnss3-dev
# libuninameslist-specific packages
- automake
- libtool
# fontforge-specific packages
- libltdl-dev
- python-dev
- libglib2.0-dev
- libxml2-dev
- libspiro-dev
- gettext
# pdf2htmlEX-specific packages
- default-jre
- libcairo2-dev
- libpango1.0-dev
homebrew:
packages:
- autoconf
- pkg-config
- git
- cmake
- freetype
# Poppler-specific packages
- fontconfig
- jpeg
- nss
# libuninameslist-specific packages
- automake
- libtool
# fontforge-specific packages
- python
- glib
- xml2
- libspiro
- gettext
# pdf2htmlEX-specific packages
- cairo
- pango
sauce_connect: true
matrix:
fast_finish: true
allow_failures:
- os: osx # Until the build passes, then re-enable.
before_install:
# Clone and build poppler
- git clone ${POPPLER_SOURCE}
- cd poppler;
git checkout tags/${POPPLER_NAME} -b poppler-local;
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/usr -DENABLE_XPDF_HEADERS=ON -DENABLE_LIBOPENJPEG=none .;
make;
make install
- cd ${TRAVIS_BUILD_DIR}
# Install libuninameslist
- git clone ${LIBUNINAMESLIST_SOURCE}
- cd libuninameslist;
git checkout tags/20180701 -b libuninameslist-local;
autoreconf -i;
automake;
./configure --prefix=${TRAVIS_BUILD_DIR}/usr;
make;
make install
- cd ${TRAVIS_BUILD_DIR}
# Install fontforge
- git clone ${FONTFORGE_SOURCE}
- cd fontforge;
git checkout tags/20170731 -b fontforge-local;
./bootstrap;
./configure --disable-programs --disable-python-extension --disable-python-scripting --prefix=${TRAVIS_BUILD_DIR}/usr;
make;
make install;
sudo ldconfig
- cd ${TRAVIS_BUILD_DIR}
# Test setup
- pip install --user Pillow selenium sauceclient
- export DISPLAY=:99.0
- test/start_xvfb.sh
- pushd /
- python -m SimpleHTTPServer 8000 >/dev/null 2>&1 &
- popd
- sleep 5
before_script:
- export LD_LIBRARY_PATH=${TRAVIS_BUILD_DIR}/usr/lib:$LD_LIBRARY_PATH
- export PKG_CONFIG_PATH=${TRAVIS_BUILD_DIR}/usr/lib/pkgconfig:$PKG_CONFIG_PATH
- patch < CMakeLists.txt.patch
- mkdir build && cd build && cmake -DENABLE_SVG=ON -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/usr ..
script:
- make
- P2H_TEST_REMOTE=1 ctest --output-on-failure --verbose
- make install
- ${TRAVIS_BUILD_DIR}/usr/bin/pdf2htmlEX -v