2018-12-06 04:41:05 +01:00
|
|
|
---
|
|
|
|
- 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
|
2019-04-08 19:25:15 +02:00
|
|
|
shell: "kill -9 $(cat '{{ subversion_server_dir }}/apache.pid')"
|
2018-12-06 04:41:05 +01:00
|
|
|
|
|
|
|
- name: remove tmp subversion server dir
|
|
|
|
file:
|
|
|
|
path: '{{ subversion_server_dir }}'
|
|
|
|
state: absent
|