project-config/jenkins/scripts/php-laravel-build.sh
Sebastian Marcet 99d2d22804 Update composer options
Added composer option --ignore-platform-reqs in order to avoid
platform missing requirements (like ext-curl and so)
https://getcomposer.org/doc/03-cli.md

Change-Id: I152f817f3665651d5f3e6ffde38590bfdbdadca3
2015-08-18 10:30:45 -03:00

13 lines
301 B
Bash

#!/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 --ignore-platform-reqs