Skip to content

Commit

Permalink
Merge pull request #3766 from cakephp/3.0-windows-ci
Browse files Browse the repository at this point in the history
3.0 windows ci
  • Loading branch information
markstory committed Jun 21, 2014
2 parents f7fda78 + ec0e26a commit bff4cb8
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
47 changes: 47 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
build: false
shallow_clone: true
platform: 'x86'
clone_folder: c:\projects\cakephp
branches:
only:
- 3.0
- 3.0-windows-ci
environment:
global:
db_class: 'Cake\Database\Driver\SqlServer'
db_database: 'cakephp'
db_login: 'sa'
db_password: 'Password12!'
PHP: "C:/PHP"
matrix:
- db: 2008
db_dsn: 'sqlsrv:Server=.\SQL2008R2SP2;Database=cakephp;MultipleActiveResultSets=false'
- db: 2012
db_dsn: 'sqlsrv:Server=.\SQL2012SP1;Database=cakephp;MultipleActiveResultSets=false'
services:
- mssql2008r2sp2
- mssql2012sp1
init:
- SET PATH=C:\php\;%PATH%
install:
- cd c:\
- ps: Start-FileDownload 'http://ci.cakephp.org/php.zip'
- 7z x php.zip -oc:\php
- cd c:\php
- copy php.ini-production php.ini
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo extension=php_sqlsrv.dll >> php.ini
- echo extension=php_pdo_sqlsrv.dll >> php.ini
- echo extension=php_pdo_mysql.dll >> php.ini
- echo extension=php_intl.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- cd C:\projects\cakephp
- php -r "readfile('https://getcomposer.org/installer');" | php
- php composer.phar install
test_script:
- sqlcmd -S ".\SQL2008R2SP2" -U sa -P Password12! -Q "create database cakephp;"
- sqlcmd -S ".\SQL2012SP1" -U sa -P Password12! -Q "create database cakephp;"
- cd C:\projects\cakephp
- vendor\bin\phpunit.bat tests\TestCase\DatabaseSuite
2 changes: 1 addition & 1 deletion src/Database/Driver/Sqlserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Sqlserver extends \Cake\Database\Driver {
* @var array
*/
protected $_baseConfig = [
'persistent' => true,
'persistent' => false,
'host' => 'localhost\SQLEXPRESS',
'login' => '',
'password' => '',
Expand Down

0 comments on commit bff4cb8

Please sign in to comment.