Browse Source

update project for zuul v3

This patch adds a few things to get the project up to speed for zuul v3:
- Adds the pep8-dev and py3-dev tox targets for local testing [1].
- Switches the zuul config to use the neutron version of the lower
constraints job ensure neutron from source is used.

[1] https://etherpad.openstack.org/p/neutron-sibling-setup

Change-Id: I29638781271436a425d3ba8bd0f941b83f109e85
tags/6.0.0.0b1
Boden R 8 months ago
parent
commit
ebeee372f3
2 changed files with 25 additions and 2 deletions
  1. 24
    0
      tox.ini
  2. 1
    2
      zuul.d/project.yaml

+ 24
- 0
tox.ini View File

@@ -123,3 +123,27 @@ deps =
123 123
   -c{toxinidir}/lower-constraints.txt
124 124
   -r{toxinidir}/test-requirements.txt
125 125
   -r{toxinidir}/requirements.txt
126
+
127
+[testenv:bandit]
128
+deps = -r{toxinidir}/test-requirements.txt
129
+commands = bandit -r neutron_lib -x tests -n5
130
+
131
+[testenv:dev]
132
+# run locally (not in the gate) using editable mode
133
+# https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs
134
+commands =
135
+    pip install -q -e "git+https://git.openstack.org/openstack/neutron#egg=neutron"
136
+
137
+[testenv:py3-dev]
138
+basepython = python3
139
+commands =
140
+    {[testenv:dev]commands}
141
+    {[testenv]commands}
142
+
143
+[testenv:pep8-dev]
144
+basepython = python3
145
+deps =
146
+    {[testenv]deps}
147
+commands =
148
+    {[testenv:dev]commands}
149
+    {[testenv:pep8]commands}

+ 1
- 2
zuul.d/project.yaml View File

@@ -6,6 +6,7 @@
6 6
       - check-requirements
7 7
       - openstack-python35-jobs-neutron
8 8
       - openstack-python36-jobs-neutron
9
+      - openstack-lower-constraints-jobs-neutron
9 10
     check:
10 11
       jobs:
11 12
         - networking-ovn-tempest-dsvm-ovs-master:
@@ -26,7 +27,6 @@
26 27
         # failures, please reach us on #tripleo IRC channel.
27 28
         - tripleo-ci-centos-7-scenario007-multinode-oooq
28 29
         - tripleo-ci-centos-7-scenario007-multinode-oooq-container
29
-        - openstack-tox-lower-constraints
30 30
         - networking-ovn-dsvm-grenade:
31 31
             branches: ^(?!stable/(ocata|pike|queens)).*$
32 32
             voting: false
@@ -44,7 +44,6 @@
44 44
             branches: ^(?!stable/newton).*$
45 45
         - tripleo-ci-centos-7-scenario007-multinode-oooq
46 46
         - tripleo-ci-centos-7-scenario007-multinode-oooq-container
47
-        - openstack-tox-lower-constraints
48 47
     experimental:
49 48
       jobs:
50 49
         - networking-ovn-tempest-dsvm-multinode:

Loading…
Cancel
Save