Enable build matrix for different SQL Server versions.

This commit is contained in:
v-dareck 2017-01-16 14:32:05 -08:00
Родитель eca1f15ba6
Коммит dd804fd0ab
1 изменённых файлов: 30 добавлений и 30 удалений

Просмотреть файл

@ -10,6 +10,7 @@ branches:
- PHP5
environment:
# MSSQL credentials from https://www.appveyor.com/docs/services-databases/
MSSQL_PASSWORD: Password12!
MSSQL_USERNAME: sa
PHP_DEPSVER: 7.0
@ -25,34 +26,34 @@ environment:
PHP_INSTALL_DIR: c:\projects\php\x64\bin
PHP_ZTS: --disable-zts
platform: x64
# - BUILD_PLATFORM: x86
# MSSQL_SERVERNAME: (local)\SQL2014
# SQL_INSTANCE: SQL2014
# PHP_VC: 14
# PHP_MAJOR_VER: 7.0
# PHP_MINOR_VER: latest
# PHP_SDK_DIR: c:\projects\php\x86
# PHP_INSTALL_DIR: c:\projects\php\x86\bin
# platform: x86
# - BUILD_PLATFORM: x64
# MSSQL_SERVERNAME: (local)\SQL2016
# SQL_INSTANCE: SQL2016
# PHP_VC: 14
# PHP_MAJOR_VER: 7.1
# PHP_MINOR_VER: latest
# PHP_SDK_DIR: c:\projects\php\x64
# PHP_INSTALL_DIR: c:\projects\php\x64\bin
# platform: x64
# - BUILD_PLATFORM: x86
# MSSQL_SERVERNAME: (local)\SQL2008R2SP2
# SQL_INSTANCE: SQL2008R2SP2
# PHP_VC: 14
# PHP_MAJOR_VER: 7.1
# PHP_MINOR_VER: latest
# PHP_SDK_DIR: c:\projects\php\x86
# PHP_INSTALL_DIR: c:\projects\php\x86\bin
# PHP_ZTS: --disable-zts
# platform: x86
- BUILD_PLATFORM: x86
MSSQL_SERVERNAME: (local)\SQL2014
SQL_INSTANCE: SQL2014
PHP_VC: 14
PHP_MAJOR_VER: 7.0
PHP_MINOR_VER: latest
PHP_SDK_DIR: c:\projects\php\x86
PHP_INSTALL_DIR: c:\projects\php\x86\bin
platform: x86
- BUILD_PLATFORM: x64
MSSQL_SERVERNAME: (local)\SQL2016
SQL_INSTANCE: SQL2016
PHP_VC: 14
PHP_MAJOR_VER: 7.1
PHP_MINOR_VER: latest
PHP_SDK_DIR: c:\projects\php\x64
PHP_INSTALL_DIR: c:\projects\php\x64\bin
platform: x64
- BUILD_PLATFORM: x86
MSSQL_SERVERNAME: (local)\SQL2008R2SP2
SQL_INSTANCE: SQL2008R2SP2
PHP_VC: 14
PHP_MAJOR_VER: 7.1
PHP_MINOR_VER: latest
PHP_SDK_DIR: c:\projects\php\x86
PHP_INSTALL_DIR: c:\projects\php\x86\bin
PHP_ZTS: --disable-zts
platform: x86
# PHP_MAJOR_VER is PHP major version to build (7.0, 7.1)
@ -111,8 +112,7 @@ install:
- ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-' + ${env:PHP_VERSION} + '-src.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php.zip')
#- echo Downloading PHP deps [%PHP_DEPSVER%]
#- ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/php-sdk/deps-' + ${env:PHP_DEPSVER} + '-vc' + ${env:PHP_VC} + '-' + ${env:BUILD_PLATFORM} + '.7z', ${env:APPVEYOR_BUILD_FOLDER} + '\..\deps.7z')
- echo Downloading MSODBC 13
# 32-bit https://download.microsoft.com/download/1/E/7/1E7B1181-3974-4B29-9A47-CC857B271AA2/English/X86/msodbcsql.msi
- echo Downloading MSODBCSQL 13
- ps: (new-object net.webclient).DownloadFile('https://download.microsoft.com/download/1/E/7/1E7B1181-3974-4B29-9A47-CC857B271AA2/English/' + ${env:BUILD_PLATFORM} + '/msodbcsql.msi', 'msodbcsql.msi')
- ps: msiexec /i msodbcsql.msi /quiet /qn /norestart
- cd ..