Presta meta CI allows you to create virtual hosts for Jenkins / Travis / Behat.
It is used by PrestaCMS with our CI and Travis., (*1)
Issue tracker
:clipboard: Issues are managed in prestaconcept/open-source-management to centralize our open source activity., (*2)
Requirement for ci_init_vhost
httpd configuration
create a directory to store your CI vhosts
mkdir -m775 /etc/httpd/conf.d/jenkins_vhosts
chgrp jenkins /etc/httpd/conf.d/jenkins_vhosts
auto include vhosts
include jenkins vhosts in an Apache configuration file
(after your default vhost), (*3)
Include conf.d/jenkins_vhosts/*.conf
Allow jenkins to write in /etc/hosts
chmod g+w /etc/hosts
chgrp jenkins /etc/hosts
Allow jenkins and reload Apache
for visudo syntax check, (*4)
visudo -f /etc/sudoers.d/jenkins
file content to allow HTTPD configuration test + reload, (*5)
Defaults:jenkins !requiretty
jenkins ALL=(ALL) NOPASSWD: /usr/sbin/apachectl graceful
jenkins ALL=(ALL) NOPASSWD: /usr/sbin/apachectl -t
setup script for apache in ci
In in order to run behat validations or other stuff, this creates a vhost for current job, (*6)
bin/ci_init_vhost [<subdir_for_documentroot>]
The server name will be {JOB_NAME}.loc
., (*7)
See behat + jenkins for more details., (*8)
Ask for help
:speech_balloon: If you need help about this project you can post a message on our google group, (*9)
Contributing
Pull requests are welcome., (*10)
Thanks to
everyone who has contributed already., (*11)
This project is supported by PrestaConcept, (*12)
Lead Developer : @remyfrd, (*13)
Released under the MIT License, (*14)
, (*15)