# This file is part of Ansible

# Copyright: (c) 2018, Wojciech Sciesinski <wojciech[at]sciesinski[dot]net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

---
- name: unregister the repository
  win_shell: Unregister-PSRepository {{ repository_name | quote }} -ErrorAction SilentlyContinue

- block:
  - name: run all tests
    include_tasks: tests.yml

  always:
  - name: ensure test repo is unregistered
    win_shell: Unregister-PSRepository {{ repository_name | quote }} -ErrorAction SilentlyContinue
