mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-09-29 01:31:29 +00:00
38 lines
756 B
Bash
Executable File
38 lines
756 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ev
|
|
|
|
# This bash script installs all local software required to run the
|
|
# pdf2htmlEX tests
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Start by making sure all required apt packages exist
|
|
#
|
|
sudo apt -y install \
|
|
diffutils \
|
|
zip \
|
|
python3 \
|
|
python3-pip \
|
|
xvfb \
|
|
firefox
|
|
|
|
# Now get the geckodriver for firefox (as required by selenium)
|
|
#
|
|
pushd /tmp
|
|
#
|
|
wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
|
|
#
|
|
tar xvf geckodriver-v0.26.0-linux64.tar.gz
|
|
#
|
|
sudo mv geckodriver /usr/local/bin
|
|
#
|
|
popd
|
|
|
|
# Now make sure all python packages exist (install into the local user's
|
|
# PyPI archive)
|
|
#
|
|
pip3 install \
|
|
selenium \
|
|
Pillow
|