-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd6b7e8
commit 1878afc
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pycurl | ||
# m2crypt has some sslv2 issues (see https://bugzilla.osafoundation.org/show_bug.cgi?id=13024) | ||
# Use a pip source that patches up like all the OS packages | ||
-e git://github.com/eventbrite/[email protected]#egg=m2crypto | ||
libvirt-python | ||
lxml |