Add basic tox targets to verify layer build and mock out pep8 for now
This commit is contained in:
parent
9d8a6aa23c
commit
c994d3c349
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
.tox
|
.tox
|
||||||
|
build
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
includes: ['layer:openstack-principle', 'interface:mysql-shared',
|
includes: ['layer:openstack-principle', 'interface:mysql-shared',
|
||||||
'interface:rabbitmq', 'interface:keystone',
|
'interface:rabbitmq', 'interface:keystone',
|
||||||
'interface:hacluster', 'interface:openstack-ha']
|
'interface:hacluster', 'interface:openstack-ha']
|
||||||
|
repo: 'https://github.com/openstack/charm-layer-openstack'
|
||||||
|
5
requirements.txt
Normal file
5
requirements.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Requirements to build the layer
|
||||||
|
charm-tools
|
||||||
|
ruamel.yaml==0.10.12
|
||||||
|
simplejson
|
||||||
|
flake8
|
26
tox.ini
Normal file
26
tox.ini
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
[tox]
|
||||||
|
skipsdist = True
|
||||||
|
envlist = pep8,build
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
basepython = python2.7
|
||||||
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
|
PYTHONHASHSEED=0
|
||||||
|
TERM=linux
|
||||||
|
JUJU_REPOSITORY={toxinidir}/build
|
||||||
|
passenv = http_proxy https_proxy
|
||||||
|
install_command =
|
||||||
|
pip install {opts} {packages}
|
||||||
|
deps =
|
||||||
|
-r{toxinidir}/requirements.txt
|
||||||
|
whitelist_externals = /bin/true
|
||||||
|
|
||||||
|
[testenv:build]
|
||||||
|
commands =
|
||||||
|
charm-build --log-level DEBUG -o {toxinidir}/build .
|
||||||
|
|
||||||
|
[testenv:venv]
|
||||||
|
commands = {posargs}
|
||||||
|
|
||||||
|
[testenv:pep8]
|
||||||
|
commands = /bin/true
|
Loading…
Reference in New Issue
Block a user