Migrate Travis CI setup to Brewfile

This commit is contained in:
James R. Barlow
2018-03-02 15:16:05 -08:00
4 changed files with 16 additions and 19 deletions
+3 -1
View File
@@ -34,7 +34,9 @@ before_install: |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
bash .travis/linux_before_install.sh
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
bash .travis/osx_before_install.sh
brew update && brew bundle --file=.travis/Brewfile
pip3 install --upgrade pip
pip3 install wheel
fi
install:
+12
View File
@@ -0,0 +1,12 @@
brew 'python'
brew 'ghostscript'
brew 'jbig2dec'
brew 'leptonica'
brew 'libffi'
brew 'libtiff'
brew 'libxml2'
brew 'openjpeg'
brew 'qpdf'
brew 'tesseract'
brew 'unpaper'
+1 -1
View File
@@ -19,7 +19,7 @@ class Ocrmypdf < Formula
depends_on "ghostscript"
depends_on "jpeg"
depends_on "libpng"
depends_on "python3"
depends_on "python"
depends_on "qpdf"
depends_on "tesseract"
depends_on "unpaper"
-17
View File
@@ -1,17 +0,0 @@
#!/bin/bash
# © 2017 James R. Barlow: github.com/jbarlow83
set -euo pipefail
set -x
brew update
brew install openjpeg jbig2dec libtiff # image libraries
brew install qpdf
brew install ghostscript
brew install python3
brew install libxml2 libffi leptonica
brew install unpaper # optional
brew install tesseract
pip3 install --upgrade pip
pip3 install wheel