forked from cakephp/cakephp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
56 lines (47 loc) · 1.67 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
build: false
platform: 'x64'
clone_folder: C:\projects\cakephp
clone_depth: 10
branches:
only:
- master
- 3.x
- 3.next
- 4.next
cache:
- '%LOCALAPPDATA%\Composer\files'
services:
- mssql2012sp1
environment:
global:
DB_URL: 'sqlserver://sa:Password12!@.\SQL2012SP1/cakephp?MultipleActiveResultSets=false'
init:
- SET PATH=C:\Program Files\OpenSSL;C:\php;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET ANSICON=121x90 (121x90)
install:
- curl -fsS https://windows.php.net/downloads/releases/latest/php-7.2-nts-Win32-VC15-x64-latest.zip -o php.zip
- curl -fsS https://windows.php.net/downloads/pecl/releases/pdo_sqlsrv/5.6.1/php_pdo_sqlsrv-5.6.1-7.2-nts-vc15-x64.zip -o pdosqlsrv.zip
- curl -fsS https://windows.php.net/downloads/pecl/releases/sqlsrv/5.6.1/php_sqlsrv-5.6.1-7.2-nts-vc15-x64.zip -o sqlsrv.zip
- 7z x php.zip -oC:\php\ -aoa > nul
- 7z x pdosqlsrv.zip -oC:\php\ext php_pdo_sqlsrv.dll -aoa > nul
- 7z x sqlsrv.zip -oC:\php\ext php_sqlsrv.dll -aoa > nul
- cd C:\php
- copy php.ini-production php.ini /Y
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=openssl >> php.ini
- echo extension=mbstring >> php.ini
- echo extension=intl >> php.ini
- echo extension=pdo_sqlsrv >> php.ini
- echo extension=sqlsrv >> php.ini
- echo extension=fileinfo >> php.ini
- php -v
- cd C:\projects\cakephp
- appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
- php composer.phar install --no-progress
- php -i | grep "ICU version"
test_script:
- sqlcmd -S localhost,1433 -U sa -P Password12! -Q "create database cakephp;"
- cd C:\projects\cakephp
- vendor\bin\phpunit