Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reverse-dep tests for packit-service
- Loading branch information
1 parent
5fcddeb
commit 7592478
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
- set_fact: | ||
reverse_dir: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/packit-service/packit-service'].src_dir }}" | ||
|
||
- name: Install ansible | ||
dnf: | ||
name: | ||
- ansible | ||
state: present | ||
become: true | ||
- name: install packit-service dependencies via ansible playbooks | ||
command: ansible-playbook -e "ansible_python_interpreter=/usr/bin/python3" -v -c local -i localhost, files/install-openshift.yaml | ||
args: | ||
chdir: "{{ reverse_dir }}" | ||
- name: build packit-service image form current src dir | ||
command: ansible-playbook -e "ansible_python_interpreter=/usr/bin/python3" -v -c local -i localhost, files/packit-service-image.yaml | ||
args: | ||
chdir: "{{ reverse_dir }}" | ||
- name: deploy dev version of packit-service into zuul. | ||
command: ansible-playbook -e "ansible_python_interpreter=/usr/bin/python3" -v -c local -i localhost, files/deployment.yaml | ||
args: | ||
chdir: "{{ reverse_dir }}" | ||
|
||
- name: run packit-service tests | ||
command: ansible-playbook -e "ansible_python_interpreter=/usr/bin/python3" -v -c local -i localhost, files/zuul-tests.yaml | ||
args: | ||
chdir: "{{ reverse_dir }}" | ||
- name: run packit-service requre tests | ||
command: ansible-playbook -e "ansible_python_interpreter=/usr/bin/python3" -v -c local -i localhost, files/zuul-tests-requre.yaml | ||
args: | ||
chdir: "{{ reverse_dir }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
- name: Check if we are not breaking packit-service | ||
hosts: all | ||
tasks: | ||
- include_tasks: tasks/zuul-project-setup.yaml | ||
- include_tasks: tasks/generic-dnf-requirements.yaml | ||
- include_tasks: tasks/rpm-test-deps.yaml | ||
- include_tasks: tasks/packit-service-reverse-dep-tests.yaml |