diff options
-rw-r--r-- | README.md | 28 |
1 files changed, 25 insertions, 3 deletions
@@ -186,16 +186,38 @@ COPY testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml CMD ["run_tests", "-t", "all"] ``` +site.yml + +```yaml +--- +- hosts: + - 127.0.0.1 + roles: + - role: collivier.xtesting + project: weather + registry_deploy: true + repo: 127.0.0.1 + dport: 5000 + suites: + - container: weather + tests: + - humidity + - pressure + - temp + - half +``` + ### make world Deploy your own Xtesting toolchain ```bash -virtualenv xtesting +virtualenv xtesting -p python3 --system-site-packages . xtesting/bin/activate pip install ansible ansible-galaxy install collivier.xtesting -ansible-galaxy collection install ansible.posix community.general community.grafana community.kubernetes +ansible-galaxy collection install ansible.posix community.general community.grafana \ + community.kubernetes community.docker community.postgresql ansible-playbook site.yml deactivate rm -r xtesting @@ -207,7 +229,7 @@ Build your container sudo docker build -t 127.0.0.1:5000/weather . ``` -Publish your container on your local repository +Publish your container on your local registry ```bash sudo docker push 127.0.0.1:5000/weather |