ansible/test/integration/targets/subversion/tasks/main.yml
Jordan Borean 0420d606de
create local subversion server for tests (#49047)
* create local subversion server for tests

* fix sanity issues

* don't touch system config when bringing up site

* removed original setup files

* fix opensuse config
2018-12-06 13:41:05 +10:00

27 lines
594 B
YAML

---
- name: clean out the checkout dir
file:
path: '{{ subversion_test_dir }}'
state: '{{ item }}'
loop:
- absent
- directory
- name: setup subversion server
include_tasks: setup.yml
- block:
- name: verify that subversion is installed so this test can continue
shell: which svn
- name: run tests
include_tasks: tests.yml
always:
- name: stop apache after tests
command: apachectl -k stop -f {{ subversion_server_dir }}/subversion.conf
- name: remove tmp subversion server dir
file:
path: '{{ subversion_server_dir }}'
state: absent