Add new job to replace legacy-devstack-unit-tests.
Change-Id: I4fe59b1954514a7146a4412e3103a0a05a9250f2
| ... | ... |
@@ -187,11 +187,22 @@ |
| 187 | 187 |
- playbooks/tox/pre.yaml |
| 188 | 188 |
run: playbooks/tox/run.yaml |
| 189 | 189 |
|
| 190 |
+- job: |
|
| 191 |
+ name: devstack-unit-tests |
|
| 192 |
+ description: | |
|
| 193 |
+ Runs unit tests on devstack project. |
|
| 194 |
+ |
|
| 195 |
+ It runs ``run_tests.sh``. |
|
| 196 |
+ pre-run: playbooks/unit-tests/pre.yaml |
|
| 197 |
+ run: playbooks/unit-tests/run.yaml |
|
| 198 |
+ |
|
| 190 | 199 |
- project: |
| 191 | 200 |
check: |
| 192 | 201 |
jobs: |
| 193 | 202 |
- devstack |
| 194 | 203 |
- devstack-multinode |
| 204 |
+ - devstack-unit-tests |
|
| 195 | 205 |
gate: |
| 196 | 206 |
jobs: |
| 197 | 207 |
- devstack |
| 208 |
+ - devstack-unit-tests |
| 198 | 209 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,13 @@ |
| 0 |
+- hosts: all |
|
| 1 |
+ |
|
| 2 |
+ tasks: |
|
| 3 |
+ |
|
| 4 |
+ - name: Install prerequisites |
|
| 5 |
+ shell: |
|
| 6 |
+ chdir: '{{ zuul.project.src_dir }}'
|
|
| 7 |
+ executable: /bin/bash |
|
| 8 |
+ cmd: | |
|
| 9 |
+ set -e |
|
| 10 |
+ set -x |
|
| 11 |
+ echo "IPV4_ADDRS_SAFE_TO_USE=10.1.0.0/20" >> localrc |
|
| 12 |
+ ./tools/install_prereqs.sh |