mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-01-04 03:01:52 +00:00
Move qpdf to before_script
This commit is contained in:
parent
e2ec3d8b9b
commit
3bde0715b0
12
.travis.yml
12
.travis.yml
@ -61,15 +61,10 @@ before_cache:
|
||||
|
||||
before_install: |
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||
bash .travis/linux_before_install.sh
|
||||
pip install --upgrade pip
|
||||
mkdir -p packages bin
|
||||
wget -q 'https://www.dropbox.com/s/vaq0kbwi6e6au80/unpaper_6.1-1.deb?raw=1' -O packages/unpaper_6.1-1.deb
|
||||
sudo dpkg -i packages/unpaper_6.1-1.deb
|
||||
wget -q 'https://github.com/qpdf/qpdf/releases/download/release-qpdf-8.0.2/qpdf-8.0.2-x86_64.AppImage' -O bin/qpdf.AppImage
|
||||
chmod +x bin/qpdf.AppImage
|
||||
ln -s qpdf.AppImage bin/qpdf
|
||||
export PATH=$(pwd)/bin:$PATH
|
||||
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||
brew update && brew bundle --file=.travis/Brewfile
|
||||
pip3 install --upgrade pip
|
||||
@ -80,6 +75,13 @@ install:
|
||||
- pip3 install ".$EXTRAS"
|
||||
- pip3 install -r test_requirements.txt
|
||||
|
||||
before_script: |
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||
wget -q 'https://github.com/qpdf/qpdf/releases/download/release-qpdf-8.0.2/qpdf-8.0.2-x86_64.AppImage' -O bin/qpdf
|
||||
chmod +x bin/qpdf
|
||||
export PATH=$PWD/bin:$PATH
|
||||
fi
|
||||
|
||||
script:
|
||||
- tesseract --version
|
||||
- qpdf --version
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user