replace conditional with array_pad
[dokuwiki.git] / appveyor.yml
blobdd1140a559a1c94fccc1979bbe0f131ffdf52579
1 build: false
2 clone_folder: c:\dokuwiki
3 max_jobs: 3
4 platform: x86
5 pull_requests:
6   do_not_increment_build_number: true
7 version: '{build}.{branch}'
9 environment:
10   matrix:
11     - PHP_VERSION: '7.0.21'
12       VC: 'VC14'
13       PHPUNIT: '6.3'
14     - PHP_VERSION: '5.6.30'
15       VC: 'VC11'
16       PHPUNIT: '5.7'
18 cache:
19   - c:\php -> appveyor.yml
21 init:
22   - SET PATH=c:\php\%PHP_VERSION%;%PATH%
24 install:
25   - echo %PHP_VERSION%
26   - IF NOT EXIST c:\php mkdir c:\php
27   - IF NOT EXIST c:\php\%PHP_VERSION% mkdir c:\php\%PHP_VERSION%
28   - cd c:\php\%PHP_VERSION%
29   - IF NOT EXIST php-installed.txt appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-%PHP_VERSION%-Win32-%VC%-x86.zip
30   - IF NOT EXIST php-installed.txt 7z x php-%PHP_VERSION%-Win32-%VC%-x86.zip -y >nul
31   - IF NOT EXIST php-installed.txt del /Q *.zip
32   - IF NOT EXIST php-installed.txt copy /Y php.ini-development php.ini
33   - IF NOT EXIST php-installed.txt echo max_execution_time=1200 >> php.ini
34   - IF NOT EXIST php-installed.txt echo date.timezone="UTC" >> php.ini
35   - IF NOT EXIST php-installed.txt echo extension_dir=ext >> php.ini
36   - IF NOT EXIST php-installed.txt echo extension=php_openssl.dll >> php.ini
37   - IF NOT EXIST php-installed.txt echo extension=php_mbstring.dll >> php.ini
38   - IF NOT EXIST php-installed.txt echo extension=php_gd2.dll >> php.ini
39   - IF NOT EXIST php-installed.txt echo extension=php_bz2.dll >> php.ini
40   - IF NOT EXIST php-installed.txt echo extension=php_pdo_sqlite.dll >> php.ini
41   - IF NOT EXIST php-installed.txt appveyor DownloadFile https://phar.phpunit.de/phpunit-%PHPUNIT%.phar -FileName phpunit.phar
42   - IF NOT EXIST php-installed.txt type nul >> php-installed.txt
44 test_script:
45   - php -v
46   - cd c:\dokuwiki\_test
47   - php c:\php\%PHP_VERSION%\phpunit.phar