Permalink
Browse files

avoid hosting our own version of php

  • Loading branch information...
antograssiot committed Dec 8, 2015
1 parent 3c47b40 commit 9d2810448c8f49aff633ffb554bf20b0ec6fbb87
Showing with 16 additions and 8 deletions.
  1. +16 −8 appveyor.yml
View
@@ -2,40 +2,47 @@ build: false
shallow_clone: false
platform: 'x86'
clone_folder: c:\projects\cakephp
branches:
only:
- master
- 3.2
environment:
global:
PHP: "C:/PHP"
matrix:
- db: 2012
db_dsn: 'sqlserver://sa:Password12!@.\SQL2012SP1/cakephp?MultipleActiveResultSets=false'
services:
- mssql2012sp1
init:
- SET PATH=C:\php\;%PATH%
install:
- cd c:\
- ps: Start-FileDownload 'http://ci.cakephp.org/php.zip'
- appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.5.8-nts-Win32-VC11-x86.zip -FileName php.zip
- 7z x php.zip -oc:\php
- cd c:\php
- cd c:\php\ext
- appveyor DownloadFile https://dl.dropboxusercontent.com/s/1cdq70jbx8vcf56/sqlsrv_unofficial_3.0.2.2.zip -FileName sqlsrv.zip
- 7z x sqlsrv.zip
- cd ..
- 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_sqlsrv_55_nts.dll >> php.ini
- echo extension=php_pdo_sqlsrv_55_nts.dll >> php.ini
- echo extension=php_intl.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_fileinfo.dll >> php.ini
- cd C:\projects\cakephp
- php -r "readfile('https://getcomposer.org/installer');" | php
- php composer.phar install --prefer-dist --no-interaction
- php -v
- appveyor DownloadFile https://getcomposer.org/composer.phar
- php composer.phar install --prefer-dist --no-interaction --ansi --no-progress
- php -i | grep "ICU version"
before_test:
# This script solves the "Database 'model' is being recovered. Waiting until recovery is finished."
# This solution comes from https://gist.github.com/jonathanhickford/1cb0d6665adab8b9c664
@@ -70,6 +77,7 @@ before_test:
}
$tries = $tries -1;
}
test_script:
- sqlcmd -S ".\SQL2012SP1" -U sa -P Password12! -Q "create database cakephp;"
- cd C:\projects\cakephp

0 comments on commit 9d28104

Please sign in to comment.