Merge lp:~zulcss/charms/trusty/lxd/lxd-tox into lp:~openstack-charmers-archive/charms/trusty/lxd/next

Proposed by Chuck Short
Status: Merged
Merged at revision: 56
Proposed branch: lp:~zulcss/charms/trusty/lxd/lxd-tox
Merge into: lp:~openstack-charmers-archive/charms/trusty/lxd/next
Diff against target: 56 lines (+42/-0)
3 files modified
requirements.txt (+5/-0)
test-requirements.txt (+8/-0)
tox.ini (+29/-0)
To merge this branch: bzr merge lp:~zulcss/charms/trusty/lxd/lxd-tox
Reviewer Review Type Date Requested Status
OpenStack Charmers Pending
Review via email: mp+287197@code.launchpad.net

Description of the change

Add tox

To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #1476 lxd-next for zulcss mp287197
    LINT OK: passed

Build: http://10.245.162.36:8080/job/charm_lint_check/1476/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #1232 lxd-next for zulcss mp287197
    UNIT FAIL: unit-test failed

UNIT Results (max last 2 lines):
make: *** [test] Error 1
ERROR:root:Make target returned non-zero.

Full unit test output: http://paste.ubuntu.com/15198433/
Build: http://10.245.162.36:8080/job/charm_unit_test/1232/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #531 lxd-next for zulcss mp287197
    AMULET OK: passed

Build: http://10.245.162.36:8080/job/charm_amulet_test/531/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'requirements.txt'
2--- requirements.txt 1970-01-01 00:00:00 +0000
3+++ requirements.txt 2016-02-25 16:03:46 +0000
4@@ -0,0 +1,5 @@
5+# The order of packages is significant, because pip processes them in the order
6+# of appearance. Changing the order has an impact on the overall integration
7+# process, which may cause wedges in the gate later.
8+PyYAML>=3.1.0
9+
10
11=== added file 'test-requirements.txt'
12--- test-requirements.txt 1970-01-01 00:00:00 +0000
13+++ test-requirements.txt 2016-02-25 16:03:46 +0000
14@@ -0,0 +1,8 @@
15+# The order of packages is significant, because pip processes them in the order
16+# of appearance. Changing the order has an impact on the overall integration
17+# process, which may cause wedges in the gate later.
18+coverage>=3.6
19+mock>=1.2
20+flake8>=2.2.4,<=2.4.1
21+os-testr>=0.4.1
22+charm-tools
23
24=== added file 'tox.ini'
25--- tox.ini 1970-01-01 00:00:00 +0000
26+++ tox.ini 2016-02-25 16:03:46 +0000
27@@ -0,0 +1,29 @@
28+[tox]
29+envlist = pep8,py27
30+skipsdist = True
31+
32+[testenv]
33+setenv = VIRTUAL_ENV={envdir}
34+ PYTHONHASHSEED=0
35+install_command =
36+ pip install --allow-unverified python-apt {opts} {packages}
37+commands = ostestr {posargs}
38+
39+[testenv:py27]
40+basepython = python2.7
41+deps = -r{toxinidir}/requirements.txt
42+ -r{toxinidir}/test-requirements.txt
43+
44+[testenv:pep8]
45+basepython = python2.7
46+deps = -r{toxinidir}/requirements.txt
47+ -r{toxinidir}/test-requirements.txt
48+commands = flake8 {posargs} hooks unit_tests tests
49+ charm proof
50+
51+[testenv:venv]
52+commands = {posargs}
53+
54+[flake8]
55+ignore = E402,E226
56+exclude = hooks/charmhelpers

Subscribers

People subscribed via source and target branches