This repository has been archived by the owner on Feb 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TG-698 Change-Id: I4c12b4bffc7b680e95a0b40e724fa93bdcfef07e
- Loading branch information
Showing
6 changed files
with
54 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
- job: | ||
name: repoxplorer-unittests | ||
parent: base | ||
description: This is running the unittests for this project | ||
run: playbooks/unittests.yaml | ||
nodeset: | ||
nodes: | ||
- name: test-node | ||
label: centos-oci | ||
|
||
- project: | ||
name: repoxplorer | ||
check: | ||
jobs: | ||
- repoxplorer-unittests | ||
gate: | ||
jobs: | ||
- repoxplorer-unittests |
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 @@ | ||
This directory contains only playbooks for repoxplorer testing in the CI. |
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,24 @@ | ||
--- | ||
- hosts: test-node | ||
tasks: | ||
- name: "Get workspace directory" | ||
command: pwd | ||
register: pwd_command | ||
args: | ||
chdir: "src/{{ zuul.project.canonical_hostname }}/" | ||
- name: "Set workspace" | ||
set_fact: | ||
workspace: "{{ pwd_command.stdout }}" | ||
- name: Extract ElasticSearch 2.4.0 archive | ||
unarchive: | ||
src: https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.0/elasticsearch-2.4.0.tar.gz | ||
dest: "{{ workspace }}" | ||
remote_src: yes | ||
- name: Start ElasticSearch | ||
command: "{{ workspace }}/elasticsearch-2.4.0/bin/elasticsearch -d" | ||
- name: Get processes list | ||
command: ps axf | ||
- name: Run unit tests | ||
command: tox | ||
args: | ||
chdir: "{{ zuul.project.src_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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
flake8 | ||
flake8>=3.3.0<3.4.0 | ||
nose | ||
mock | ||
coverage | ||
|
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