Skip to content

Commit 3868b15

Browse files
committed
appveyor: added PHP 7.2
1 parent 3f35235 commit 3868b15

1 file changed

Lines changed: 22 additions & 7 deletions

File tree

appveyor.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
build: off
22
cache:
3-
- c:\php -> appveyor.yml
3+
- c:\php71 -> appveyor.yml
4+
- c:\php72 -> appveyor.yml
45
- '%LOCALAPPDATA%\Composer\files -> appveyor.yml'
56

67
clone_folder: c:\projects\database
@@ -18,14 +19,27 @@ init:
1819
- SET ANSICON=121x90 (121x90)
1920

2021
install:
21-
# Install PHP
22-
- IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php)
23-
- IF %PHP%==1 cd c:\php
24-
- IF %PHP%==1 curl https://windows.php.net/downloads/releases/archives/php-7.1.0-Win32-VC14-x64.zip --output php.zip
22+
# Install PHP 7.1
23+
- IF EXIST c:\php71 (SET PHP=0) ELSE (mkdir c:\php71)
24+
- IF %PHP%==1 cd c:\php71
25+
- IF %PHP%==1 curl https://windows.php.net/downloads/releases/archives/php-7.1.5-Win32-VC14-x64.zip --output php.zip
2526
- IF %PHP%==1 7z x php.zip >nul
2627
- IF %PHP%==1 echo extension_dir=ext >> php.ini
2728
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
28-
- IF %PHP%==1 appveyor DownloadFile https://github.com/Microsoft/msphpsql/releases/download/4.1.4-Windows/7.1.zip
29+
- IF %PHP%==1 appveyor DownloadFile https://github.com/Microsoft/msphpsql/releases/download/v4.3.0/Windows-7.1.zip
30+
- IF %PHP%==1 7z x 7.1.zip >nul
31+
- IF %PHP%==1 copy 7.1\x64\php_pdo_sqlsrv_71_ts.dll ext\php_pdo_sqlsrv_ts.dll
32+
- IF %PHP%==1 del /Q *.zip
33+
- cd c:\projects\database
34+
35+
# Install PHP 7.2
36+
- IF EXIST c:\php72 (SET PHP=0) ELSE (mkdir c:\php72)
37+
- IF %PHP%==1 cd c:\php72
38+
- IF %PHP%==1 curl https://windows.php.net/downloads/releases/archives/php-7.1.5-Win32-VC14-x64.zip --output php.zip
39+
- IF %PHP%==1 7z x php.zip >nul
40+
- IF %PHP%==1 echo extension_dir=ext >> php.ini
41+
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
42+
- IF %PHP%==1 appveyor DownloadFile https://github.com/Microsoft/msphpsql/releases/download/v5.2.0-RC/Windows-7.2.zip
2943
- IF %PHP%==1 7z x 7.1.zip >nul
3044
- IF %PHP%==1 copy 7.1\x64\php_pdo_sqlsrv_71_ts.dll ext\php_pdo_sqlsrv_ts.dll
3145
- IF %PHP%==1 del /Q *.zip
@@ -39,4 +53,5 @@ install:
3953
- copy tests\databases.appveyor.ini tests\Database\databases.ini
4054

4155
test_script:
42-
- vendor\bin\tester tests -s -c tests\php-win.ini
56+
- vendor\bin\tester tests -s -p c:\php71\php -c tests\php-win.ini
57+
- vendor\bin\tester tests -s -p c:\php72\php -c tests\php-win.ini

0 commit comments

Comments
 (0)