1
0

install_pagure_ci.rst 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. .. note:: We ship a systemd unit file for pagure_ci but we welcome patches
  18. for scripts for other init systems.
  19. * Install the files of pagure-ci as follow:
  20. +--------------------------------------+---------------------------------------------------+
  21. | Source | Destination |
  22. +======================================+===================================================+
  23. | ``pagure-ci/pagure_ci_server.py`` | ``/usr/libexec/pagure-ci/pagure_ci_server.py`` |
  24. +--------------------------------------+---------------------------------------------------+
  25. | ``pagure-ci/pagure_ci.service`` | ``/etc/systemd/system/pagure_ci.service`` |
  26. +--------------------------------------+---------------------------------------------------+
  27. The first file is the pagure-ci service itself, triggering the build on the
  28. CI service when there is a new pull-request or a change to an existing one.
  29. The second file is the systemd service file.
  30. * Configure your pagure instance to support CI, add the following to your
  31. configuration file
  32. ::
  33. PAGURE_CI_SERVICES = ['jenkins']
  34. * Activate the service and ensure it's started upon boot:
  35. ::
  36. systemctl enable redis
  37. systemctl start redis
  38. systemctl enable pagure_ci
  39. systemctl start pagure_ci