This repository has been archived by the owner on Jan 21, 2025. It is now read-only.
forked from getsentry/sentry-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
59 lines (53 loc) · 2.21 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
version: 2.x-{build}
build: false
clone_depth: 2
clone_folder: c:\projects\sentry-php
skip_branch_with_pr: true
branches:
only:
- master
- develop
environment:
matrix:
- PHP_VERSION: 7.1-Win32-VC14
DEPENDENCIES: lowest
- PHP_VERSION: 7.1-Win32-VC14
DEPENDENCIES: highest
- PHP_VERSION: 7.2-Win32-VC15
DEPENDENCIES: lowest
- PHP_VERSION: 7.2-Win32-VC15
DEPENDENCIES: highest
- PHP_VERSION: 7.3-Win32-VC15
DEPENDENCIES: lowest
- PHP_VERSION: 7.3-Win32-VC15
DEPENDENCIES: highest
matrix:
fast_finish: true
cache:
- composer.phar
- '%LocalAppData%\Composer\files'
- 'c:\php -> .appveyor.yml'
init:
- SET PATH=c:\php\%PHP_VERSION%;%PATH%
- SET ANSICON=121x90 (121x90)
- SET INSTALL_PHP=1
install:
- IF NOT EXIST c:\php mkdir c:\php
- IF NOT EXIST c:\php\%PHP_VERSION% mkdir c:\php\%PHP_VERSION% ELSE SET INSTALL_PHP=0
- IF %INSTALL_PHP%==1 cd c:\php\%PHP_VERSION%
- IF %INSTALL_PHP%==1 curl --fail --location --silent --show-error -o php-%PHP_VERSION%-x64-latest.zip https://windows.php.net/downloads/releases/latest/php-%PHP_VERSION%-x64-latest.zip
- IF %INSTALL_PHP%==1 7z x php-%PHP_VERSION%-x64-latest.zip -y >nul
- IF %INSTALL_PHP%==1 del /Q php-%PHP_VERSION%-x64-latest.zip
- IF %INSTALL_PHP%==1 copy /Y php.ini-development php.ini >nul
- IF %INSTALL_PHP%==1 echo extension_dir=c:\php\%PHP_VERSION%\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.8.3/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