presta/meta-ci

This package is abandoned and no longer maintained. No replacement package was suggested.

Manage your vhost for Behat on continuous integration

Installs: 9 324

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 6

Forks: 1

Language:Shell

1.0.0 2014-02-26 11:37 UTC

This package is not auto-updated.

Last update: 2020-09-30 11:44:27 UTC


README

Presta meta CI allows you to create virtual hosts for Jenkins / Travis / Behat. It is used by PrestaCMS with our CI and Travis.

Issue tracker

📋 Issues are managed in prestaconcept/open-source-management to centralize our open source activity.

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)

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

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

Tools

setup script for apache in ci

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.

Ask for help

💬 If you need help about this project you can post a message on our google group

Contributing

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

Bitdeli Badge