-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
63 lines (55 loc) · 2.38 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
57
58
59
60
61
62
63
build: false
platform:
- x64
clone_depth: 5
environment:
matrix:
- PHP_VERSION: '7.1'
XDEBUG_VERSION: '2.6.1-7.1-vc14-nts-x86_64'
- PHP_VERSION: '7.2'
XDEBUG_VERSION: '2.6.1-7.2-vc15-nts-x86_64'
- PHP_VERSION: '7.3'
XDEBUG_VERSION: '2.7.0-7.3-vc15-nts-x86_64'
cache:
- '%LOCALAPPDATA%\Composer\files -> composer.lock'
- composer.phar
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
- c:\tools\php -> appveyor.yml
init:
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET PHP=1
- SET ANSICON=121x90 (121x90)
install:
- IF EXIST c:\tools\php (SET PHP=0)
- ps: appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:PHP_VERSION | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
- cd c:\tools\php
- IF %PHP%==1 copy php.ini-production php.ini /Y
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
- IF %PHP%==1 echo extension_dir=ext >> php.ini
- IF %PHP%==1 echo extension=php_bz2.dll >> php.ini
- IF %PHP%==1 echo extension=php_curl.dll >> php.ini
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
- IF %PHP%==1 echo extension=php_xsl.dll >> php.ini
- IF %PHP%==1 curl -fsS -o c:\tools\php\ext\php_xdebug-%XDEBUG_VERSION%.dll https://xdebug.org/files/php_xdebug-%XDEBUG_VERSION%.dll
- IF %PHP%==1 echo zend_extension=php_xdebug-%XDEBUG_VERSION%.dll >> php.ini
- IF %PHP%==1 curl -fsS -o c:\tools\php\extras\ssl\cacert.pem https://curl.haxx.se/ca/cacert.pem
- IF %PHP%==1 echo curl.cainfo="C:\tools\php\extras\ssl\cacert.pem" >> php.ini
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
- appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
- cd %APPVEYOR_BUILD_FOLDER%
- appveyor-retry composer install --no-progress --profile
- appveyor-retry composer self-update --update-keys
test_script:
- cd %APPVEYOR_BUILD_FOLDER%
- ps: composer win-ci
- php idoitcli --help
- php idoitcli --version
notifications:
- provider: Email
on_build_success: false
on_build_failure: true
on_build_status_changed: true