forked from getsentry/sentry-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
63 lines (57 loc) · 2.23 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
version: 2.x-{build}
build: false
clone_depth: 2
clone_folder: c:\projects\sentry-php
skip_branch_with_pr: true
image: Visual Studio 2019
branches:
only:
- master
- develop
- /^release\/.+$/
environment:
matrix:
- PHP_VERSION: 7.1
DEPENDENCIES: lowest
- PHP_VERSION: 7.1
DEPENDENCIES: highest
- PHP_VERSION: 7.2
DEPENDENCIES: lowest
- PHP_VERSION: 7.2
DEPENDENCIES: highest
- PHP_VERSION: 7.3
DEPENDENCIES: lowest
- PHP_VERSION: 7.3
DEPENDENCIES: highest
- PHP_VERSION: 7.4
DEPENDENCIES: lowest
- PHP_VERSION: 7.4
DEPENDENCIES: highest
matrix:
fast_finish: true
cache:
- composer.phar
- '%LOCALAPPDATA%\Composer\files'
- C:\php -> .appveyor.yml
init:
- SET PATH=C:\php;%PATH%
- SET ANSICON=121x90 (121x90)
- SET INSTALL_PHP=1
install:
- IF EXIST C:\php SET INSTALL_PHP=0
- ps: choco upgrade chocolatey --confirm --no-progress --allow-downgrade --version 0.10.13
- ps: choco install php --confirm --no-progress --package-parameters '""/InstallDir:C:\php""' --version (choco search php --exact --all-versions --limit-output | Select-String -Pattern $env:PHP_VERSION | ForEach-Object {$_ -Replace "php\|", ""} | Sort {[version] $_} -Descending | Select-Object -First 1)
- cd C:\php
- IF %INSTALL_PHP%==1 copy /Y php.ini-production php.ini
- IF %INSTALL_PHP%==1 echo extension_dir=C:\php\ext >> php.ini
- IF %INSTALL_PHP%==1 echo extension=php_curl.dll >> php.ini
- IF %INSTALL_PHP%==1 echo extension=php_mbstring.dll >> php.ini
- IF %INSTALL_PHP%==1 echo extension=php_openssl.dll >> php.ini
- cd C:\projects\sentry-php
- IF NOT EXIST composer.phar appveyor-retry appveyor DownloadFile https://github.com/composer/composer/releases/download/1.9.1/composer.phar
- php composer.phar self-update
- IF %DEPENDENCIES%==lowest php composer.phar update --no-progress --no-interaction --no-suggest --ansi --prefer-lowest --prefer-dist
- IF %DEPENDENCIES%==highest php composer.phar update --no-progress --no-interaction --no-suggest --ansi --prefer-dist
test_script:
- cd C:\projects\sentry-php
- vendor\bin\phpunit.bat