Skip to content

Commit

Permalink
Initial Travis run
Browse files Browse the repository at this point in the history
  • Loading branch information
helgi authored and clalancette committed Feb 16, 2017
1 parent cd6b7e8 commit 1878afc
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .travis.yml
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
6 changes: 6 additions & 0 deletions requirements.txt
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

0 comments on commit 1878afc

Please sign in to comment.