More complete travis.yml

This commit is contained in:
James R. Barlow
2015-09-06 00:02:58 -07:00
parent 8367172e0b
commit 01040ace4c
2 changed files with 42 additions and 8 deletions
+39 -6
View File
@@ -1,10 +1,43 @@
sudo: false
language: python
python:
- 3.4
addons:
apt:
packages:
- locales
- ghostscript
- tesseract-ocr
- tesseract-ocr-deu tesseract-ocr-eng tesseract-ocr-fra
- qpdf
- poppler-utils
- wget
- gcc-4.8
- libavformat-dev
- libavcodec-dev
- libavutil-dev
- autoconf
- automake
- make
- pkg-config
- xsltproc
# before_script:
# - wget -q https://github.com/Flameeyes/unpaper/archive/unpaper-6.1.tar.gz
# - tar -xvf unpaper-6.1.tar.gz
# - cd unpaper-6.1.tar.gz && autoreconf -i && ./configure --prefix=/tmp/unpaper && make && make install
script:
- pip install --upgrade pip
- python setup.py clean
- python setup.py install
after_success:
- py.test
os:
- linux
- osx
matrix:
include:
- python: "3.4"
- python: "3.5"
+3 -2
View File
@@ -44,12 +44,13 @@ RUN apt-get install -y \
xsltproc
WORKDIR /root
RUN wget https://github.com/Flameeyes/unpaper/archive/unpaper-6.1.tar.gz
RUN wget -q https://github.com/Flameeyes/unpaper/archive/unpaper-6.1.tar.gz
RUN tar xf unpaper-6.1.tar.gz
WORKDIR /root/unpaper-unpaper-6.1
RUN autoreconf -i
RUN ./configure CFLAGS="-O2 -march=native -pipe -flto"
RUN make -j install
WORKDIR /
RUN apt-get remove -y \
gcc \
@@ -59,7 +60,7 @@ RUN apt-get remove -y \
xsltproc \
make
RUN apt-get autoremove -y && apt-get clean -y
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/*
# Set up a Python virtualenv and take all of the system packages, so we can
# rely on the platform packages rather than importing GCC and compiling them