diff options
author | Rémy Coutable <remy@rymai.me> | 2017-01-30 10:09:51 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-01-30 10:09:51 +0000 |
commit | 7d11ed931e779a289d0f6932e22eb46374462765 (patch) | |
tree | ea79c67fec76be8346e97c1df8db2a659fa8e326 /doc | |
parent | fabdcf818b5bfb45edd3a4ffbf1382b4ec9662d2 (diff) | |
parent | 11551de5fa245323798f4ff40a322a5d003421ec (diff) | |
download | gitlab-ce-7d11ed931e779a289d0f6932e22eb46374462765.tar.gz |
Merge branch 'improve-ci-example-php-doc' into 'master'
Changed composer installer script in the CI PHP example doc
See merge request !8817
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ci/examples/php.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/ci/examples/php.md b/doc/ci/examples/php.md index 82ffb841729..5eeec92d976 100644 --- a/doc/ci/examples/php.md +++ b/doc/ci/examples/php.md @@ -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 ... |