mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
Try porting Rockstar04's build script. Let's see if it actually finishes...
This commit is contained in:
parent
4667e7c869
commit
3e5e2d3394
82
.travis.yml
82
.travis.yml
@ -1,31 +1,60 @@
|
|||||||
language: cpp
|
language: cpp
|
||||||
|
|
||||||
sudo: true
|
#sudo: true
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
# - osx
|
||||||
|
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
|
|
||||||
|
env:
|
||||||
|
- POPPLER_NAME="poppler-0.63.0" POPPLER_SOURCE="https://ftp.osuosl.org/pub/blfs/conglomeration/poppler/poppler-0.63.0.tar.xz" FONTFORGE_SOURCE="https://github.com/fontforge/fontforge.git" PDF2HTMLEX_SOURCE="https://github.com/Rockstar04/pdf2htmlEX.git"
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
sources:
|
||||||
|
- sourceline: 'ppa:fontforge/fontforge'
|
||||||
|
- sourceline: 'ppa:coolwanglu/pdf2htmlex'
|
||||||
update: true
|
update: true
|
||||||
sourceline: 'ppa:fontforge/fontforge'
|
|
||||||
packages:
|
packages:
|
||||||
- libpoppler-private-dev
|
- ttfautohint
|
||||||
|
- build-essential
|
||||||
|
- libtool
|
||||||
|
- autoconf
|
||||||
|
- python-pip
|
||||||
|
- libgetopt++-dev
|
||||||
|
- pkg-config
|
||||||
|
- git
|
||||||
|
- default-jre
|
||||||
|
- libnss3-dev
|
||||||
|
- libopenjpeg-dev
|
||||||
|
- libjpeg-turbo8-dev
|
||||||
|
- libfontconfig1-dev
|
||||||
|
- poppler-data
|
||||||
|
# - poppler-utils
|
||||||
|
# - poppler-dbg
|
||||||
|
- packaging-dev
|
||||||
|
- libglib2.0-dev
|
||||||
|
- libxml2-dev
|
||||||
|
- giflib-dbg
|
||||||
|
- libjpeg-dev
|
||||||
|
- libtiff-dev
|
||||||
|
- uthash-dev
|
||||||
- libcairo-dev
|
- libcairo-dev
|
||||||
- libpoppler-dev
|
# - libpoppler-dev
|
||||||
- libspiro-dev
|
- libspiro-dev
|
||||||
- libcairo-dev
|
- libcairo-dev
|
||||||
- libpango1.0-dev
|
- libpango1.0-dev
|
||||||
- libfreetype6-dev
|
- libfreetype6-dev
|
||||||
- libltdl-dev
|
- libltdl-dev
|
||||||
- libfontforge-dev
|
- libfontforge-dev
|
||||||
|
- python-dev
|
||||||
- python-imaging
|
- python-imaging
|
||||||
- python-pip
|
- python-pip
|
||||||
- firefox
|
- firefox
|
||||||
- xvfb
|
- xvfb
|
||||||
|
- cmake
|
||||||
homebrew:
|
homebrew:
|
||||||
packages:
|
packages:
|
||||||
- fontforge
|
- fontforge
|
||||||
@ -34,24 +63,39 @@ addons:
|
|||||||
sauce_connect: true
|
sauce_connect: true
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- pip install --user selenium sauceclient
|
# Install poppler
|
||||||
- export DISPLAY=:99.0
|
- wget "${POPPLER_SOURCE}"
|
||||||
- test/start_xvfb.sh
|
- tar -xvf "${POPPLER_NAME}.tar.xz"
|
||||||
- pushd /
|
- cd "${POPPLER_NAME}/"
|
||||||
- python -m SimpleHTTPServer 8000 >/dev/null 2>&1 &
|
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`pwd`/../usr -DENABLE_XPDF_HEADERS=ON -DENABLE_LIBOPENJPEG=none
|
||||||
- popd
|
- make && make install
|
||||||
- sleep 5
|
- cd ..
|
||||||
|
# Install fontforge libuninameslist via source ...
|
||||||
|
- git clone https://github.com/fontforge/libuninameslist.git
|
||||||
|
- cd libuninameslist
|
||||||
|
- autoreconf -i && automake
|
||||||
|
- ./configure --prefix=`pwd`/../usr
|
||||||
|
- make && make install
|
||||||
|
# Install fontforge via source
|
||||||
|
- git clone --depth 1 --single-branch --branch 20170731 "$FONTFORGE_SOURCE"
|
||||||
|
- cd fontforge/ && git checkout tags/20170731
|
||||||
|
- ./bootstrap
|
||||||
|
- ./configure --prefix=`pwd`/../usr
|
||||||
|
- make && make install && ldconfig
|
||||||
|
# - pip install --user selenium sauceclient
|
||||||
|
# - export DISPLAY=:99.0
|
||||||
|
# - test/start_xvfb.sh
|
||||||
|
# - pushd /
|
||||||
|
# - python -m SimpleHTTPServer 8000 >/dev/null 2>&1 &
|
||||||
|
# - popd
|
||||||
|
# - sleep 5
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- cmake -DENABLE_SVG=ON -DCMAKE_INSTALL_PREFIX=`pwd`/usr .
|
- cmake -DENABLE_SVG=ON -DCMAKE_INSTALL_PREFIX=`pwd`/usr .
|
||||||
|
- export LD_LIBRARY_PATH=`pwd`/usr/lib:$LD_LIBRARY_PATH
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make
|
- make
|
||||||
- P2H_TEST_REMOTE=1 ctest --output-on-failure --verbose
|
# - P2H_TEST_REMOTE=1 ctest --output-on-failure --verbose
|
||||||
- make install
|
- make install
|
||||||
- /usr/local/bin/pdf2htmlEX -v
|
- /usr/local/bin/pdf2htmlEX -v
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- secure: V0yGXROTAsRc3ExcECj7X/CrJLbodUeqZyfQGkA6x0iLV7Lh8/hgTjSsvuj7ef/DIWMqJ5cAIzZuXiF0KIxiVllF1v0I3w+LScxynT7B1NsyH16hvGIc7EvrsRmGVeTv8n9I+cCIwQxjtliNKfeZjV4Rk2+u6LioUzTszmW2etc=
|
|
||||||
- secure: Q5ZSrdFEgN0JvUp90nY5Wh58iukmGZQ2EW7crOibWH2yuUsxAnMELxpY+9yV3+eA7kbjJf/I0NCa5ZY1gkxK60ugUj+zuUDTL+BV1XCbO37e0uwh3ae99iyQWpXc8e8wBp10sthoX7U6Hvypa5tD9r1JJib8jxJV/MzIFpb7H9s=
|
|
Loading…
Reference in New Issue
Block a user