File: .travis.yml

package info (click to toggle)
oz 0.16.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,620 kB
  • sloc: python: 6,993; xml: 654; perl: 614; makefile: 45; sh: 21
file content (33 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download
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