Basic gating and release jobs of openstackid project
Add check, gate, post and release jobs to PHP/Laravel based openstackid project. Extend precise node with php5-mcrypt package required for build process. Change-Id: If7858412d5c3425aab20c0d11a92cab4c86f47dd
This commit is contained in:
parent
398595f47e
commit
99e45c62da
12
files/slave_scripts/php-laravel-build.sh
Normal file
12
files/slave_scripts/php-laravel-build.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash -xe
|
||||
# Build a Laravel/PHP distribution using composer.
|
||||
|
||||
cat >bootstrap/environment.php <<EOF
|
||||
<?php
|
||||
\$env = \$app->detectEnvironment(function()
|
||||
{
|
||||
return 'dev';
|
||||
});
|
||||
EOF
|
||||
curl -s https://getcomposer.org/installer | /usr/bin/php
|
||||
php composer.phar install --prefer-dist
|
@ -52,6 +52,8 @@ class jenkins::params {
|
||||
$xvfb_package = 'xorg-x11-server-Xvfb'
|
||||
# PHP package, used for community portal
|
||||
$php5_cli_package = 'php-cli'
|
||||
# FIXME: No php mcrypt package on RHEL, used for openstackid
|
||||
#$php5_mcrypt_package = ''
|
||||
# For Tooz unit tests
|
||||
# FIXME: No zookeeper packages on RHEL
|
||||
#$zookeeper_package = 'zookeeper-server'
|
||||
@ -130,6 +132,7 @@ class jenkins::params {
|
||||
$xvfb_package = 'xvfb'
|
||||
# PHP package, used for community portal
|
||||
$php5_cli_package = 'php5-cli'
|
||||
$php5_mcrypt_package = 'php5-mcrypt'
|
||||
# For [tooz, taskflow, nova] using zookeeper in unit tests
|
||||
$zookeeper_package = 'zookeeperd'
|
||||
$cgroups_package = 'cgroup-bin'
|
||||
|
@ -128,6 +128,11 @@ class jenkins::slave(
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
# For openstackid using php5-mcrypt for distro build
|
||||
package { $::jenkins::params::php5_mcrypt_package:
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
}
|
||||
default: {
|
||||
fail("Unsupported osfamily: ${::osfamily} The 'jenkins' module only supports osfamily Debian or RedHat (slaves only).")
|
||||
|
Loading…
x
Reference in New Issue
Block a user