Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/opensuse/gitarro

run all your test against a GitHub Pull request
https://github.com/opensuse/gitarro

auto automation ci continuous-integration git github gundam-image jenkins octokit pull-requests ruby testing

Last synced: 2 months ago
JSON representation

run all your test against a GitHub Pull request

Awesome Lists containing this project

README

        

[![Build Status Master branch](https://travis-ci.org/openSUSE/gitarro.svg?branch=master)](https://travis-ci.org/openSUSE/gitarro)
[![Gem Version](https://badge.fury.io/rb/gitarro.svg)](https://badge.fury.io/rb/gitarro)
![awesome-badge](assets/images/badge.svg)

## Table of Content

- [Introduction](#introduction)
- [Install](#install)
- [Quickstart](#quickstart)
- [Basic concepts, installation, configuration, tests, syntax and a basic example](doc/BASICS.md)
- [Advanced usage](doc/ADVANCED.md)
- [How to contribute to gitarro development](doc/CONTRIBUTING.md)
- [Releasing gitarro](doc/RELEASING.md)

## Introduction

gitarro allow you to run tests on Git Hub [Pull Requests](https://help.github.com/articles/about-pull-requests/) (also known as PRs) using almost any script, language or binary and providing easy integration with other tools, and testing env. (such containers, cloud, VMS, etc.)

It can run on any system that is able to use ruby and [octokit](https://github.com/octokit/octokit.rb).

## Install

`gem install gitarro`

## Quickstart

1. Setup the netrc file
```shell
GITHUB_USER=INSERT GITHUB_PWD_OR_TOKEN=foo echo "machine api.github.com login $GITHUB_USER password $GITHUB_PWD_OR_TOKEN" > ~/.netrc
sudo chmod 0600 ~/.netrc
```

2. Create a test script for running against PRs

```shell
echo "#! /bin/bash" > /tmp/tests.sh
echo "exit 0" > /tmp/tests.sh
chmod +x /tmp/tests.sh
```

3. Run gitarro against your GitHub project.

```shell
YOUR_GITHUB_PROJECT="MalloZup/gitarro"
gitarro.rb -r $YOUR_GITHUB_PROJECT -c "ruby-test" -t /tmp/tests.sh --https
```

## Authors

- [Dario Maiocchi](https://github.com/MalloZup)

Contributor and Maintainers:

- @juliogonzalez
- @srbarrios
- @MalloZup

See also the list of [contributors](https://github.com/openSUSE/gitarro/graphs/contributors) who participated in this project.

## License

This project is licensed under the MIT License - see the LICENSE.md file for details

### Extra

Gitarro is part of the curate list [Awesome Ruby](http://awesome-ruby.com)