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