-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
44 lines (38 loc) · 1.54 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
build: false
platform:
- x64
clone_folder: c:\projects\php-project-workspace
## Build matrix for lowest and highest possible targets
environment:
matrix:
- dependencies: lowest
php_ver_target: 7.0
- dependencies: current
php_ver_target: 7.0
- dependencies: highest
php_ver_target: 7.0
## Cache composer bits
cache:
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
- C:\tools\php -> appveyor.yml
- '%LOCALAPPDATA%\Composer\files -> composer.lock'
## Set up environment varriables
init:
- SET COMPOSER_ROOT_VERSION=dev-master ## Temporary until we tag first versions
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET PHP=1
- SET ANSICON=121x90 (121x90)
## Install PHP and composer, and run the appropriate composer command
install:
- ps: IF (!(Test-Path c:\tools\php)) {appveyor-retry cinst -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $Env:php_ver_target | Select-Object -first 1) -replace '[php|]',''); cmd.exe /c 'appveyor.bat'}
- cd c:\projects\php-project-workspace
- IF %dependencies%==lowest appveyor-retry composer update --prefer-lowest --no-progress -n
- IF %dependencies%==current appveyor-retry composer install --no-progress
- IF %dependencies%==highest appveyor-retry composer update --no-progress -n
- composer show
## Run the actual test
test_script:
- cd c:\projects\php-project-workspace
- vendor/bin/phpunit -c phpunit.xml.dist