Skip to content

Commit 1276ccf

Browse files
authored
Removed the PHP env var
1 parent ebf0993 commit 1276ccf

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

appveyor.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ platform:
33
- x64
44
clone_folder: c:\projects\php-project-workspace
55

6-
76
## Build matrix for lowest and highest possible targets
87
environment:
98
matrix:
@@ -13,6 +12,7 @@ environment:
1312
php_ver_target: 7.0
1413
- dependencies: highest
1514
php_ver_target: 7.0
15+
1616
## Cache composer bits
1717
cache:
1818
- '%LOCALAPPDATA%\Composer\files -> composer.lock'
@@ -21,21 +21,19 @@ cache:
2121
init:
2222
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
2323
- SET COMPOSER_NO_INTERACTION=1
24-
- SET PHP=1
2524
- SET ANSICON=121x90 (121x90)
2625

2726
## Install PHP and composer, and run the appropriate composer command
2827
install:
29-
- IF EXIST c:\tools\php (SET PHP=0)
3028
- 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|]','')
3129
- cd c:\tools\php
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
30+
- copy php.ini-production php.ini /Y
31+
- echo date.timezone="UTC" >> php.ini
32+
- echo extension_dir=ext >> php.ini
33+
- echo extension=php_openssl.dll >> php.ini
34+
- echo extension=php_mbstring.dll >> php.ini
35+
- echo extension=php_fileinfo.dll >> php.ini
36+
- echo @php %%~dp0composer.phar %%* > composer.bat
3937
- appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
4038
- cd c:\projects\php-project-workspace
4139
- IF %dependencies%==lowest appveyor-retry composer update --prefer-lowest --no-progress --profile -n

0 commit comments

Comments
 (0)