1
0

install_pagure_ci.rst 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Installing pagure-ci
  2. ====================
  3. A CI stands for `Continuous Integration
  4. <https://en.wikipedia.org/wiki/Continuous_integration>`_. Pagure can be
  5. configured to integrate results coming from CI services, such as `Jenkins
  6. <https://en.wikipedia.org/wiki/Jenkins_(software)>`_ on pull-request opened
  7. against the project.
  8. .. note: Currently, pagure only supports `Jenkins` but we welcome help to
  9. integrate pagure with other services such as `travis-ci
  10. <https://en.wikipedia.org/wiki/Travis_CI>`_.
  11. Configure your system
  12. ---------------------
  13. * Install the required dependencies
  14. ::
  15. python-jenkins
  16. python-redis
  17. python-trololio
  18. .. note:: We ship a systemd unit file for pagure_ci but we welcome patches
  19. for scripts for other init systems.
  20. * Install the files of pagure-ci as follow:
  21. +--------------------------------------+---------------------------------------------------+
  22. | Source | Destination |
  23. +======================================+===================================================+
  24. | ``pagure-ci/pagure_ci_server.py`` | ``/usr/libexec/pagure-ci/pagure_ci_server.py`` |
  25. +--------------------------------------+---------------------------------------------------+
  26. | ``pagure-ci/pagure_ci.service`` | ``/etc/systemd/system/pagure_ci.service`` |
  27. +--------------------------------------+---------------------------------------------------+
  28. The first file is the pagure-ci service itself, triggering the build on the
  29. CI service when there is a new pull-request or a change to an existing one.
  30. The second file is the systemd service file.
  31. * Configure your pagure instance to support CI, add the following to your
  32. configuration file
  33. ::
  34. PAGURE_CI_SERVICES = ['jenkins']
  35. * Activate the service and ensure it's started upon boot:
  36. ::
  37. systemctl enable redis
  38. systemctl start redis
  39. systemctl enable pagure_ci
  40. systemctl start pagure_ci