Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding initial appveyor config
  • Loading branch information
lorenzo committed Jun 20, 2014
1 parent 169caa0 commit 5bbbb53
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions appveyor.yml
@@ -0,0 +1,35 @@
build: false
environment:
global:
db_class: 'Cake\Database\Driver\SqlServer'
db_dsn: 'mysql:host=0.0.0.0;dbname=cakephp'
db_database: 'cakephp'
db_login: 'sa'
db_password: 'Password12!'
matrix:
- PHP: "C:/PHP"
services:
- mssql2008r2sp2
init:
- SET PATH=C:\php\;%PATH%
install:
- cd c:\
- ps: Start-FileDownload 'http://robmorgan.s3.amazonaws.com/php55/php-5.5.7-nts-Win32-VC11-x86.zip'
- 7z x php-5.5.7-nts-Win32-VC11-x86.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_intl.dll >> php.ini
- echo extension=php_mcrypt.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;"
- cd C:\projects\cakephp
- "%PHP%/php.exe --version"
- vendor\bin\phpunit.bat tests\TestCase\Database

0 comments on commit 5bbbb53

Please sign in to comment.