Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (47 sloc) 1.71 KB
build: false
platform:
- x64
environment:
MSSQL_VERSION: v5.1.1-preview
PAPERCUT_VERSION: 4.8.0.1
matrix:
- PHP_VERSION_PATCH: 7.1.12
PHP_VERSION_MINOR: 7.1
PHP_PATH: C:\tools\php71
SQLSRV_FILE: php_pdo_sqlsrv_71_nts.dll
- PHP_VERSION_PATCH: 7.2.0
PHP_VERSION_MINOR: 7.2
PHP_PATH: C:\tools\php72
SQLSRV_FILE: php_pdo_sqlsrv_72_nts.dll
matrix:
fast_finish: true
services:
- mssql2016
init:
- SET PATH=C:\Program Files\OpenSSL;%PATH%
- SET PATH=%PHP_PATH%;%PATH%
- SET COMPOSER_NO_INTERACTION=1
install:
- sc config wuauserv start=auto
- net start wuauserv
- choco upgrade chocolatey
- choco install openssl.light
- choco install php -version %PHP_VERSION_PATCH%
- echo extension_dir=ext >> %PHP_PATH%\php.ini
- echo extension=php_curl.dll >> %PHP_PATH%\php.ini
- echo extension=php_mbstring.dll >> %PHP_PATH%\php.ini
- echo extension=php_openssl.dll >> %PHP_PATH%\php.ini
- echo extension=%SQLSRV_FILE% >> %PHP_PATH%\php.ini
- appveyor DownloadFile https://github.com/Microsoft/msphpsql/releases/download/%MSSQL_VERSION%/Windows-%PHP_VERSION_MINOR%.zip
- 7z x Windows-%PHP_VERSION_MINOR%.zip
- copy Windows-%PHP_VERSION_MINOR%\x64 %PHP_PATH%\ext
- appveyor DownloadFile https://github.com/ChangemakerStudios/Papercut/releases/download/%PAPERCUT_VERSION%/PapercutService.%PAPERCUT_VERSION%.zip
- 7z x PapercutService.%PAPERCUT_VERSION%.zip -oPapercutService
- PapercutService\Papercut.Service.exe install --sudo
- appveyor DownloadFile https://getcomposer.org/composer.phar
- php composer.phar global require hirak/prestissimo
- php composer.phar install
test_script:
- PapercutService\Papercut.Service.exe start
- SET DB_URL=mssql://sa:Password12!@(local)\SQL2016/master
- vendor/bin/phpunit --configuration=phpunit.xml