Skip to content

Commit 27d12ed

Browse files
authored
Put the IF's back in
1 parent bdc03bc commit 27d12ed

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

appveyor.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@ init:
2626

2727
## Install PHP and composer, and run the appropriate composer command
2828
install:
29+
- IF EXIST c:\tools\php (SET PHP=0)
2930
- ps: appveyor-retry cinst -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $Env:php_ver_target | Select-Object -first 1) -replace '[php|]','')
3031
- cd c:\tools\php
31-
- copy php.ini-production php.ini /Y
32-
- echo date.timezone="UTC" >> php.ini
33-
- echo extension_dir=ext >> php.ini
34-
- echo extension=php_openssl.dll >> php.ini
35-
- echo extension=php_mbstring.dll >> php.ini
36-
- echo extension=php_fileinfo.dll >> php.ini
37-
- echo @php %%~dp0composer.phar %%* > composer.bat
32+
- IF %PHP%==1 copy php.ini-production php.ini /Y
33+
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
34+
- IF %PHP%==1 echo extension_dir=ext >> php.ini
35+
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
36+
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
37+
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
38+
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
3839
- appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
3940
- cd c:\projects\php-project-workspace
4041
- IF %dependencies%==lowest appveyor-retry composer update --prefer-lowest --no-progress --profile -n

0 commit comments

Comments
 (0)