forked from cakephp/phinx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
47 lines (39 loc) · 1.59 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
build: false
platform: 'x64'
clone_folder: C:\projects\phinx
clone_depth: 10
environment:
SQLSRV_DSN: 'sqlsrv://sa:Password12!@localhost:1433/phinxtesting'
services:
- mssql2012sp1
cache:
- '%LOCALAPPDATA%\Composer\files'
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
- php -v
- cd C:\projects\phinx
- appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
- php composer.phar update --no-progress
- php composer.phar show
test_script:
- sqlcmd -S localhost,1433 -U sa -P Password12! -Q "create database phinxtesting;"
- cd c:\projects\phinx
- vendor\bin\phpunit --no-configuration --bootstrap tests\phpunit-bootstrap.php tests\