Git Product home page Git Product logo

dgroc's Introduction

dgroc

Author

Pierre-Yves Chibon <[email protected]> : Tom Eccles <t AT freedommail DOT info>

dgroc: Daily Git Rebuild On Copr

This project aims at easily provide daily build of a project tracked via git and made available via copr.

Get it running

  • Retrieve the sources:

    git clone https://github.com/tblah/dgroc.git
  • Create the configuration file ~/.config/dgroc
  • Fill the configuration file, for example:

    [main]
    username= me
    email = [email protected]
    
    [subsurface]
    git_url = git://subsurface.hohndel.org/subsurface.git
    git_folder = /tmp/subsurface/
    spec_file = ~/GIT/subsurface/subsurface.spec
    
    [guake]
    copr = subsurface
    git_url = https://github.com/Guake/guake.git
    git_folder = /tmp/guake/
    spec_file = ~/GIT/guake/guake.spec
    patch_files = ~/GIT/guake/guake-0.2.2-fix_vte.patch,
                  ~/GIT/guake/0001-Remove-vte-check-in-the-configure.ac.patch

For each project, only three options are required:

git_url The url to the git repository, that is only required if the git repo is not already cloned on the disk (see git_folder).

git_folder The location of the local clone of the git repository to build.

spec_file The location of the spec file for the project to build.

patch_files A comma separated list of patches required to build the project. These files will be copied over to the rpm sourcedir to be present when building the source rpm.

copr The optional name of the copr repository to build the package within. When not set, the project name (from []) is used.

Note

The spec file should be fully functionnal as all dgroc will do is update the Source0, Release and add an entry in the Changelog.

Note

You might have to set in your spec file the %setup line to:

%setup -q -n <projectname>

Run the project

From the sources, it requires few steps:

  • Install dependencies:

    dnf install libgit2-devel python-pygit2 copr-cli
  • Make sure that you have a valid Copr API Token:: See https://copr.fedoraproject.org/api/
  • Run dgroc:

    python2 dgroc.py

For more information/output run python2 dgroc.py --debug

Run dgroc daily

The easiest way to run dgroc daily is to simply rely on cron

Here is an example cron entry that you will need to adjust for your setup:

30 10 * * * python2 /home/pingou/dgroc/dgroc.py

This cron will run every day at 10:30 am and call the dgroc.py script within the dgroc clone

dgroc's People

Contributors

endle avatar hroncok avatar pypingou avatar tblah avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.