Merge "Add Zuul v3 native unit-tests"
This commit is contained in:
commit
3f2f418fbf
11
.zuul.yaml
11
.zuul.yaml
@ -193,11 +193,22 @@
|
|||||||
- playbooks/tox/pre.yaml
|
- playbooks/tox/pre.yaml
|
||||||
run: playbooks/tox/run.yaml
|
run: playbooks/tox/run.yaml
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: devstack-unit-tests
|
||||||
|
description: |
|
||||||
|
Runs unit tests on devstack project.
|
||||||
|
|
||||||
|
It runs ``run_tests.sh``.
|
||||||
|
pre-run: playbooks/unit-tests/pre.yaml
|
||||||
|
run: playbooks/unit-tests/run.yaml
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
- devstack
|
- devstack
|
||||||
- devstack-multinode
|
- devstack-multinode
|
||||||
|
- devstack-unit-tests
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
- devstack
|
- devstack
|
||||||
|
- devstack-unit-tests
|
||||||
|
13
playbooks/unit-tests/pre.yaml
Normal file
13
playbooks/unit-tests/pre.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
- hosts: all
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Install prerequisites
|
||||||
|
shell:
|
||||||
|
chdir: '{{ zuul.project.src_dir }}'
|
||||||
|
executable: /bin/bash
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
echo "IPV4_ADDRS_SAFE_TO_USE=10.1.0.0/20" >> localrc
|
||||||
|
./tools/install_prereqs.sh
|
12
playbooks/unit-tests/run.yaml
Normal file
12
playbooks/unit-tests/run.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
- hosts: all
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Run run_tests.sh
|
||||||
|
shell:
|
||||||
|
chdir: '{{ zuul.project.src_dir }}'
|
||||||
|
executable: /bin/bash
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
./run_tests.sh
|
Loading…
Reference in New Issue
Block a user