-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.appveyor.yml
47 lines (43 loc) · 1.62 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
image: Visual Studio 2022
build: false
platform:
- x64
clone_folder: C:\projects\filesystem
## Build matrix for lowest and highest possible targets
environment:
PHPBuild: "x64"
WINCACHE: "2.0.0.8"
VC: "vs16"
matrix:
- php_ver_target: 8.1.14
- php_ver_target: 8.2.1
- php_ver_target: 8.3.9
init:
- SET PATH=C:\Program Files\OpenSSL;C:\tools\php;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET ANSICON=121x90 (121x90)
## Install PHP and composer, and run the appropriate composer command
install:
- ps: >-
appveyor-retry choco install --no-progress --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
- cd C:\tools\php
- copy php.ini-production php.ini /Y
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_fileinfo.dll >> php.ini
- echo extension=php_ftp.dll >> php.ini
- echo extension=gd >> php.ini
- echo extension=php_gmp.dll >> php.ini
- echo extension=php_pgsql.dll >> php.ini
- echo extension=php_curl.dll >> php.ini
- echo zend_extension=php_opcache.dll >> php.ini
- echo opcache.enable_cli=1 >> php.ini
- choco install composer
- cd C:\projects\filesystem
- refreshenv
- composer update --prefer-stable --no-progress
test_script:
- cd C:\projects\filesystem
- vendor\bin\phpunit