GitXplorerGitXplorer
n

ovirt-ci

public
6 stars
6 forks
0 issues

Commits

List of commits on branch master.
Unverified
dd171cf3502ad38d2fb6e337696315f7a48049b7

Rename contrib to bash-completion

nnirs committed 5 years ago
Unverified
97671de3143ad333325bc0277ecd8951860a2ed6

contrib: add bash auto-completion script

vvjuranek committed 5 years ago
Unverified
8b215e9c809706924500c74df5f8b290afac888a

readme: link to ovirt-ci.conf.example

ddanielerez committed 5 years ago
Unverified
b712908b6e392cef7be33ea713a4d4b4d18c78ba

readme: added cairo-gobject-devel to Installation

ddanielerez committed 5 years ago
Unverified
a83a085f492e23c814bea7b0f7586b2e4c7c7520

readme: missing './' in Usage

ddanielerez committed 5 years ago
Unverified
bfc42383b3f0eeb842a5a00d8eef5ee73c257422

Fix build status URL after project rename

nnirs committed 5 years ago

README

The README file for this repository.

oVirt-CI

Build Status

Command line tool for working with oVirt CI.

Installation

On Fedora 29 or later:

sudo dnf install \
    NetworkManager \
    cairo-gobject-devel \
    gcc \
    gobject-introspection-devel \
    python2-devel \
    python3-devel

On Ubuntu Xenial:

sudo apt-get install \
    gcc \
    gir1.2-networkmanager-1.0 \
    libgirepository1.0-dev \
    network-manager \
    python2-dev \
    python3-dev

Install requirements:

pip install -r requirements.txt --user

Setup

Visit https://jenkins.ovirt.org/user/username/configure and create an API Token.

Keep your Jenkins user id and API Token in the configuration file at:

~/.config/ovirt-ci.conf

Here is an example configuration file:

[jenkins]
user_id = johnd
api_token = 3e8cd699a2564d9ba2855831bf4cb5eb

Full example is available at: ovirt-ci.conf.example

Bash auto-completion

To setup bash auto-completion for ovirt-ci tool, install the bash-completion package, and copy bash-completion/ovirt-ci to /usr/share/bash-completion/completions/.

When starting new bash shell, you can use <tab> to auto-complete ovirt-ci commands.

Usage

Building artifacts for a change:

$ ./ovirt-ci build-artifacts 54321

This command will invoke the build-artifacts stage for the project. You can use the job URL printed by the command to run oVirt system tests manually.

Running oVirt system tests with a change:

$ ./ovirt-ci system-tests 54321

This commands builds artifacts with the patch above, and run oVirt system tests job with the built artifacts. When the test run is completed, add a comment about the run to the patch.

Contributing

PRs are welcome!

First instal tox.

On Fedora:

$ sudo dnf install python2-tox

If the distribution tox is too old, you can install using:

$ pip install tox --user.

To run the tests locally, use:

$ tox