anki-word-query/.travis.yml

34 lines
1.0 KiB
YAML
Raw Normal View History

2018-07-01 13:36:38 +08:00
sudo: required
dist: trusty
language: python
python:
- "2.7"
before_install:
2018-07-01 14:11:54 +08:00
- sudo apt-get install python-pip python2.7-dev libxext-dev python-qt4 qt4-dev-tools build-essential
- sudo apt-get install qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer
- sudo apt-get install libqwt5-qt4 libqwt5-qt4-dev
2018-07-01 15:49:54 +08:00
- mv src addons
2018-07-01 15:10:03 +08:00
- curl -L -O http://sourceforge.net/projects/pyqt/files/sip/sip-4.14.1/sip-4.14.1.tar.gz
- tar -xvf sip-4.14.1.tar.gz
- cd sip-4.14.1
2018-07-01 13:56:51 +08:00
- python configure.py
- make -j 2
- sudo make install
- cd ..
2018-07-01 14:58:26 +08:00
- curl -L -O http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.9.5/PyQt-x11-gpl-4.9.5.tar.gz
- tar -xvf PyQt-x11-gpl-4.9.5.tar.gz
- cd PyQt-x11-gpl-4.9.5
2018-07-01 13:56:51 +08:00
- python configure.py --confirm-license
- make -j 2
- sudo make install
2018-07-01 14:39:05 +08:00
- cd ..
2018-07-01 14:51:27 +08:00
- curl -L -O http://apps.ankiweb.net/downloads/current/anki-2.0.52-source.tgz
- tar -xvf anki-2.0.52-source.tgz
2018-07-01 14:26:19 +08:00
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
2018-07-01 15:49:54 +08:00
script: python anki-2.0.52/runanki -b .