File tree 4 files changed +66
-0
lines changed
4 files changed +66
-0
lines changed Original file line number Diff line number Diff line change
1
+ build : off
2
+ cache :
3
+ - c:\php -> appveyor.yml
4
+ - ' %LOCALAPPDATA%\Composer\files -> appveyor.yml'
5
+
6
+ clone_folder : c:\projects\database
7
+
8
+ services :
9
+ - mssql2008r2sp2
10
+ - mssql2012sp1
11
+ - mssql2014
12
+ - mysql
13
+
14
+ init :
15
+ - SET PATH=c:\php;%PATH%
16
+ - SET PHP=1
17
+ - SET ANSICON=121x90 (121x90)
18
+
19
+ install :
20
+ # Install PHP
21
+ - IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php)
22
+ - IF %PHP%==1 cd c:\php
23
+ - IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.6.14-Win32-VC11-x86.zip
24
+ - IF %PHP%==1 7z x php-5.6.14-Win32-VC11-x86.zip >nul
25
+ - IF %PHP%==1 echo extension_dir=ext >> php.ini
26
+ - IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
27
+ - IF %PHP%==1 appveyor DownloadFile https://files.nette.org/misc/php-sqlsrv.zip
28
+ - IF %PHP%==1 7z x php-sqlsrv.zip >nul
29
+ - IF %PHP%==1 copy SQLSRV\php_pdo_sqlsrv_56_ts.dll ext\php_pdo_sqlsrv_ts.dll
30
+ - IF %PHP%==1 del /Q *.zip
31
+ - cd c:\projects\database
32
+
33
+ # Install Nette Tester
34
+ - appveyor DownloadFile https://getcomposer.org/composer.phar
35
+ - php composer.phar install --prefer-dist --no-interaction --no-progress
36
+
37
+ # Create databases.ini
38
+ - copy tests\databases.appveyor.ini tests\Database\databases.ini
39
+
40
+ test_script :
41
+ - vendor\bin\tester tests -s -p php -c tests\php-win.ini
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ Nette Database
3
3
4
4
[ ![ Downloads this Month] ( https://img.shields.io/packagist/dm/nette/database.svg )] ( https://packagist.org/packages/nette/database )
5
5
[ ![ Build Status] ( https://travis-ci.org/nette/database.svg?branch=master )] ( https://travis-ci.org/nette/database )
6
+ [ ![ Build Status Windows] ( https://ci.appveyor.com/api/projects/status/github/nette/database?branch=master&svg=true )] ( https://ci.appveyor.com/project/nette/database/branch/master )
6
7
[ ![ Latest Stable Version] ( https://poser.pugx.org/nette/database/v/stable )] ( https://github.com/nette/database/releases )
7
8
[ ![ License] ( https://img.shields.io/badge/license-New%20BSD-blue.svg )] ( https://github.com/nette/database/blob/master/license.md )
8
9
Original file line number Diff line number Diff line change
1
+ [mysql]
2
+ dsn = " mysql:host=127.0.0.1"
3
+ user = root
4
+ password = " Password12!"
5
+
6
+ [sqlite]
7
+ dsn = " sqlite::memory:"
8
+
9
+ [sqlsrv 2008]
10
+ dsn = " sqlsrv:Server=(local)\SQL2008R2SP2;Database=master"
11
+ user = sa
12
+ password = " Password12!"
13
+
14
+ [sqlsrv 2012]
15
+ dsn = " sqlsrv:Server=(local)\SQL2012SP1;Database=master"
16
+ user = sa
17
+ password = " Password12!"
18
+
19
+ ; NDB does not differentiate between 2012 and 2014
20
+ ; [sqlsrv 2014]
21
+ ; dsn = "sqlsrv:Server=(local)\SQL2014;Database=master"
22
+ ; user = sa
23
+ ; password = "Password12!"
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ extension_dir = "./ext"
3
3
extension =php_pdo_mysql.dll
4
4
extension =php_pdo_sqlite.dll
5
5
extension =php_pdo_pgsql.dll
6
+ extension =php_pdo_sqlsrv_ts.dll
6
7
7
8
[Zend]
8
9
; zend_extension="./ext/php_xdebug-2.0.5-5.3-vc6.dll"
You can’t perform that action at this time.
0 commit comments