File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ symfony2_project_php_path: php
77symfony2_project_keep_releases : 5
88symfony2_project_clean_versioning : true
99symfony2_project_console_opts : ' '
10+ symfony2_project_maintain_composer : true
1011symfony2_project_composer_opts : ' --no-dev --optimize-autoloader --no-interaction'
1112symfony2_fire_schema_update : false
1213symfony2_fire_migrations : false
Original file line number Diff line number Diff line change 4848- name : Check if composer exists.
4949 stat : path={{symfony2_project_composer_path}}/composer.phar
5050 register : composer_file
51+ when : symfony2_project_maintain_composer == true
5152
5253- name : Install composer.
5354 get_url : url=https://getcomposer.org/composer.phar dest={{symfony2_project_composer_path}} mode=0755 validate_certs=no
54- when : composer_file.stat.exists == false
55+ when : symfony2_project_maintain_composer == true and composer_file.stat.exists == false
5556
5657- name : Update composer if already exists.
5758 shell : " {{symfony2_project_composer_path}}/composer.phar selfupdate"
58- when : composer_file.stat.exists == true
59+ when : symfony2_project_maintain_composer == true and composer_file.stat.exists == true
5960
6061- name : Run composer install.
6162 shell : cd {{symfony2_project_root}}/releases/{{symfony2_project_release}} && export SYMFONY_ENV={{symfony2_project_env}} && {{symfony2_project_php_path}} {{symfony2_project_composer_path}}/composer.phar install {{symfony2_project_composer_opts}}
You can’t perform that action at this time.
0 commit comments