Configuration files for travis

Config file and package stubs, required for travis to check module
correctness with pylint.
This commit is contained in:
Marta Marczykowska-Górecka 2017-11-09 18:34:29 +01:00
parent 8cfc93c70c
commit c708830af2
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B
11 changed files with 56 additions and 3 deletions

View File

@ -1,7 +1,14 @@
sudo: required
dist: trusty
language: generic
install: git clone https://github.com/QubesOS/qubes-builder ~/qubes-builder
script: ~/qubes-builder/scripts/travis-build
language: python
python:
- '3.5'
install:
- sudo apt-get install python-qt4 pyqt4-dev-tools
- pip install --quiet -r ci/requirements.txt
- git clone https://github.com/QubesOS/qubes-builder ~/qubes-builder
script:
- PYTHONPATH=test-packages pylint --rcfile=ci/pylintrc qubesmanager
- ~/qubes-builder/scripts/travis-build
env:
- DIST_DOM0=fc25 USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1

11
ci/requirements.txt Normal file
View File

@ -0,0 +1,11 @@
# WARNING: those requirements are used only for travis-ci.org
# they SHOULD NOT be used under normal conditions; use system package manager
coverage
codecov
docutils
jinja2
lxml
pylint
sphinx
pydbus
PyYAML

View File

@ -0,0 +1 @@
### mock qubesadmin.DEFAULT module

View File

@ -0,0 +1,2 @@
class Qubes(object):
pass

View File

@ -0,0 +1,4 @@
### mock qubesadmin.devices module
class DeviceAssignment(object):
pass

View File

@ -0,0 +1,4 @@
### mock qubesadmin.exc module
class QubesException(BaseException):
pass

View File

@ -0,0 +1,4 @@
### mock qubesadmin.firewall module
class Rule(object):
pass

View File

@ -0,0 +1,9 @@
### mock qubesadmin.tools module
class QubesArgumentParser(object):
def add_argument(self, *args, **kwargs):
pass
def set_defaults(self, *args, **kwargs):
pass

View File

@ -0,0 +1,4 @@
### mock qvm_start module
def main(*args, **kwargs):
pass

View File

@ -0,0 +1,7 @@
### mock qubesadmin.utils module
def parse_size(*args, **kwargs):
return args[0]
def updates_vms_status(*args, **kwargs):
return args[0]