Skip to content

Commit a0ffb84

Browse files
committed
Update appveyor.yml
1 parent b94c986 commit a0ffb84

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

appveyor.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ clone_folder: c:\projects\php-project-workspace
77
environment:
88
matrix:
99
- php_ver_target: 7.1
10-
xddl: vc14
11-
- php_ver_target: 7.2
12-
xddl: vc15
10+
- dependencies: current
11+
php_ver_target: 7.2
1312
MYSQL_DATABASE: ez_test
1413
MYSQL_HOST: localhost
1514
MYSQL_USER: root
@@ -41,7 +40,11 @@ init:
4140
install:
4241
- IF EXIST c:\tools\php (SET PHP=0)
4342
- ps: >-
44-
appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
43+
If ($env:php_ver_target -eq "5.6") {
44+
appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y --forcex86 php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
45+
} Else {
46+
appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
47+
}
4548
- appveyor-retry cinst -y sqlite
4649
- cd c:\tools\php
4750
# Get the MSSQL DLL's
@@ -84,9 +87,9 @@ install:
8487
- IF %PHP%==1 echo extension=php_pdo_sqlite.dll >> php.ini
8588
- IF %PHP%==1 echo extension=php_mysqli.dll >> php.ini
8689
- IF %PHP%==1 echo extension=php_pdo_mysql.dll >> php.ini
87-
- IF %PHP%==1 appveyor-retry appveyor DownloadFile https://xdebug.org/files/php_xdebug-2.6.1-$($env:php_ver_target)-$($env:xddl)-nts-x86_64.dll -FileName c:\tools\php\ext\php_xdebug-2.6.1-$($env:php_ver_target)-$($env:xddl)-nts-x86_64.dll
90+
- IF %PHP%==1 appveyor-retry appveyor DownloadFile https://xdebug.org/files/php_xdebug-2.6.1-7.1-vc14-nts-x86_64.dll -FileName c:\tools\php\ext\php_xdebug-2.6.1-7.1-vc14-nts-x86_64.dll
8891
- IF %PHP%==1 echo [xdebug] >> php.ini
89-
- IF %PHP%==1 echo zend_extension=php_xdebug-2.6.1-$($env:php_ver_target)-$($env:xddl)-nts-x86_64.dll >> php.ini
92+
- IF %PHP%==1 echo zend_extension=php_xdebug-2.6.1-7.1-vc14-nts-x86_64.dll >> php.ini
9093
- IF %PHP%==1 echo zend.assertions=1 >> php.ini
9194
- IF %PHP%==1 echo assert.exception=On >> php.ini
9295
- IF %PHP%==1 echo xdebug.remote_enable=1 >> php.ini

0 commit comments

Comments
 (0)