Commit 7d11ed93 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'improve-ci-example-php-doc' into 'master'

Changed composer installer script in the CI PHP example doc

See merge request !8817
parents fabdcf81 11551de5
---
title: Changed composer installer script in the CI PHP example doc
merge_request: 4342
author: Jeffrey Cafferata
......@@ -235,7 +235,11 @@ cache:
before_script:
# Install composer dependencies
- curl --silent --show-error https://getcomposer.org/installer | php
- wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
- php composer-setup.php
- php -r "unlink('composer-setup.php'); unlink('installer.sig');"
- php composer.phar install
...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment