forked from clalancette/oz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (27 loc) · 1.03 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
language: python
python:
# - "3.3"
# - "3.2"
- "2.7"
before_install:
- sudo add-apt-repository -y ppa:pdffs/precise-virt
- sudo apt-get update
- sudo apt-get install -qq genisoimage libvirt-dev mtools openssh-client python-dev python-guestfs swig libssl1.0.0 python-m2crypto python-libvirt
# Travis uses an isolated virtualenv (see http://about.travis-ci.org/docs/user/languages/python/#Travis-CI-Uses-Isolated-virtualenvs)
# Install the system python packages to get their deps and then install the pip version to have them locally
install:
- pip install -r requirements.txt
- sudo cp /usr/lib/python2.7/dist-packages/*guestfs* $VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/site-packages/
- python setup.py install
- pip install coverage
- pip install coveralls
- py.test --genscript=runtests.py
env:
- TESTFOLDER=tdl
- TESTFOLDER=guest
- TESTFOLDER=ozutil
- TESTFOLDER=factory
script:
- coverage run -p --source=oz runtests.py --verbose --tb=short tests/$TESTFOLDER
after_success:
- coveralls