Skip to content

Commit

Permalink
Build: disable composer plugins and scripts execution
Browse files Browse the repository at this point in the history
The nightly builds process runs as root from a cron job. This throws a
warning when executing composer.

Add recommended [1] parameters to composer install command.

Fixes #22644

[1] in https://getcomposer.org/root
  • Loading branch information
dregad committed Apr 2, 2017
1 parent aacc337 commit 3eae8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildrelease-repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def main():
# Composer
if path.isfile('composer.json'):
print "Installing Composer packages"
if subprocess.call('composer install', shell=True):
if subprocess.call('composer install --no-plugins --no-scripts', shell=True):
continue
print

Expand Down

0 comments on commit 3eae8e6

Please sign in to comment.