mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Initial stab at Travis integration
This commit is contained in:
parent
af21b0e278
commit
321a883c41
18
.travis.yml
Normal file
18
.travis.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
|
language: generic
|
||||||
|
env:
|
||||||
|
- PYTHONPATH=$HOME/sw/lib/python2.7/dist-packages:$PYTHONPATH PATH=$HOME/sw/bin:$PATH SIP_DIR=$HOME/sw/share/sip SIP_INC_DIR=$HOME/sw/include/python2.7
|
||||||
|
before_install:
|
||||||
|
- sudo add-apt-repository -y ppa:fkrull/deadsnakes-python2.7
|
||||||
|
- sudo apt-get -qq update
|
||||||
|
- sudo apt-get install -qq -y python-dev python-imaging python-mechanize python-lxml python-dateutil python-cssutils python-dnspython poppler-utils libpodofo-dev libwmf-dev libchm-dev libicu-dev libmtp-dev python-netifaces python-psutil python-apsw python-dbus python-pygments optipng qtbase5-private-dev libqt5webkit5-dev libqt5x11extras5-dev libqt5svg5-dev qt5-default libfontconfig1-dev libssl-dev libsqlite3-dev libudev-dev libxrender-dev
|
||||||
|
- curl https://download.calibre-ebook.com/travis/sw.tar.xz | tar xJ -C $HOME
|
||||||
|
- python setup.py bootstrap --ephemeral
|
||||||
|
script: python setup.py test
|
||||||
|
|
||||||
|
# Commands used to build sip and PyQt5 (as trusty has no python 2 PyQt packages)
|
||||||
|
# Sip:
|
||||||
|
# python configure.py -b ~/sw/bin -d ~/sw/lib/python2.7/dist-packages -e ~/sw/include/python2.7 -v ~/sw/share/sip && make -j2 && make install
|
||||||
|
# PyQt (we cannot build the webkit module as Qt is too old):
|
||||||
|
# python configure.py --verbose --confirm-license -c -j10 --no-designer-plugin --no-qml-plugin --no-docstrings --no-stubs --sip ~/sw/bin/sip --sip-incdir ~/sw/include/python2.7 -b ~/sw/bin -d ~/sw/lib/python2.7/dist-packages -v ~/sw/share/sip/PyQt5 --disable QtWebKit --disable=QtWebKitWidgets --disable=Qml --disable=QtQuick && make -j2 && make install
|
Loading…
x
Reference in New Issue
Block a user