Configuration files for travis
Config file and package stubs, required for travis to check module correctness with pylint.
This commit is contained in:
parent
8cfc93c70c
commit
c708830af2
13
.travis.yml
13
.travis.yml
@ -1,7 +1,14 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
dist: trusty
|
dist: trusty
|
||||||
language: generic
|
language: python
|
||||||
install: git clone https://github.com/QubesOS/qubes-builder ~/qubes-builder
|
python:
|
||||||
script: ~/qubes-builder/scripts/travis-build
|
- '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:
|
env:
|
||||||
- DIST_DOM0=fc25 USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1
|
- DIST_DOM0=fc25 USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1
|
||||||
|
11
ci/requirements.txt
Normal file
11
ci/requirements.txt
Normal 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
|
1
test-packages/qubesadmin/DEFAULT.py
Normal file
1
test-packages/qubesadmin/DEFAULT.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
### mock qubesadmin.DEFAULT module
|
2
test-packages/qubesadmin/__init__.py
Normal file
2
test-packages/qubesadmin/__init__.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
class Qubes(object):
|
||||||
|
pass
|
4
test-packages/qubesadmin/devices.py
Normal file
4
test-packages/qubesadmin/devices.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### mock qubesadmin.devices module
|
||||||
|
|
||||||
|
class DeviceAssignment(object):
|
||||||
|
pass
|
4
test-packages/qubesadmin/exc.py
Normal file
4
test-packages/qubesadmin/exc.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### mock qubesadmin.exc module
|
||||||
|
|
||||||
|
class QubesException(BaseException):
|
||||||
|
pass
|
4
test-packages/qubesadmin/firewall.py
Normal file
4
test-packages/qubesadmin/firewall.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### mock qubesadmin.firewall module
|
||||||
|
|
||||||
|
class Rule(object):
|
||||||
|
pass
|
9
test-packages/qubesadmin/tools/__init__.py
Normal file
9
test-packages/qubesadmin/tools/__init__.py
Normal 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
|
4
test-packages/qubesadmin/tools/qvm_start.py
Normal file
4
test-packages/qubesadmin/tools/qvm_start.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### mock qvm_start module
|
||||||
|
|
||||||
|
def main(*args, **kwargs):
|
||||||
|
pass
|
7
test-packages/qubesadmin/utils.py
Normal file
7
test-packages/qubesadmin/utils.py
Normal 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]
|
Loading…
Reference in New Issue
Block a user