forked from Freeseer/freeseer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 1.4 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: python
python:
- "2.7"
notifications:
irc: "irc.freenode.net#freeseer"
virtualenv:
system_site_packages: true
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sudo apt-get -qq update
- sudo apt-get -qq install libqt4-sql-sqlite python-qt4 python-qt4-dev python-qt4-sql
- python -c 'import PyQt4'
- python -c 'import PyQt4.QtCore'
- python -c 'import PyQt4.QtGui'
- sudo apt-get -qq install python-gst0.10 python-gst0.10-dev gstreamer0.10-plugins-good
- python -c 'import pygst'
- python -c 'import gst'
- sudo apt-get -qq install gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly
- sudo apt-get -qq install gstreamer0.10-pulseaudio
- sudo apt-get -qq install gstreamer0.10-alsa
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- pip install -r requirements.txt --use-mirrors
- pip install pep8
- pip install coveralls
# command to run tests, e.g. python setup.py test
script:
- pwd && cd src
- coverage run setup.py test
- coveralls
- cd ..
after_success:
# Test building deployable packages
- pwd && cd src
- python setup.py bdist_egg
- python setup.py sdist
- cd ..
# Test installing the built packages
- pwd && cd src/dist
- pip install freeseer-*.tar.gz
- echo "y" | pip uninstall freeseer
- easy_install freeseer-*.egg
- echo "y" | pip uninstall freeseer
- cd ../..