-
Notifications
You must be signed in to change notification settings - Fork 3
/
.appveyor.yml
48 lines (39 loc) · 1.36 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
build: false
# https://www.appveyor.com/docs/how-to/filtering-commits/#file-matching-rules
skip_commits:
files:
- '.editorconfig'
- '.gitattributes'
- '.github/'
- '.travis.yml'
- 'LICENSE'
- '*.md'
platform:
- x64
clone_folder: c:\projects\composer-substitution-plugin
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 curl,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\composer-substitution-plugin
- composer install --no-progress --profile
## Run the actual test
test_script:
- cd c:\projects\composer-substitution-plugin
- composer test