-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.appveyor.yml
More file actions
45 lines (38 loc) · 1.29 KB
/
.appveyor.yml
File metadata and controls
45 lines (38 loc) · 1.29 KB
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
build: false
skip_commits:
files:
- '.gitattributes'
- '.github/**'
- '.gitignore'
- '.travis.yml'
- 'LICENSE'
- '*.md'
platform:
- x64
clone_folder: c:\projects\phpunit-extra-constraints
environment:
matrix:
- php_ver_target: 7.2
- php_ver_target: 7.4
cache:
- '%LOCALAPPDATA%\Composer\files'
init:
- SET COMPOSER_NO_INTERACTION=1
## Install PHP and composer, and run the appropriate composer command
install:
- ps: Invoke-WebRequest "https://raw.githubusercontent.com/ChadSikorra/ps-install-php/master/Install-PHP.ps1" -OutFile "Install-PHP.ps1"
- ps: .\Install-PHP.ps1 -Version $Env:php_ver_target -Highest -Arch x64 -Extensions com_dotnet,curl,intl,mbstring,openssl
- rm .\Install-PHP.ps1
- refreshenv
- mkdir C:\composer
- cd C:\composer
- php -r "readfile('http://getcomposer.org/installer');" | php
- powershell -command "(Get-Item C:\composer\composer.phar).length"
- powershell -command "'@php C:\composer\composer.phar ' + $([char]37) + '*' | Out-File C:\composer\composer.bat -Encoding ASCII"
- SET PATH=C:\composer;%PATH%
- cd c:\projects\phpunit-extra-constraints
- composer install --no-progress --profile
## Run the actual test
test_script:
- cd c:\projects\phpunit-extra-constraints
- composer test