Skip to content

Commit 378efec

Browse files
authored
AppVeyor configuration
1 parent 160181b commit 378efec

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

appveyor.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
build: false
2+
platform:
3+
- x64
4+
- x86
5+
clone_folder: c:\projects\php-project-workspace
6+
7+
8+
## Build matrix with the different PHP versions we test against
9+
environment:
10+
matrix:
11+
- php_ver_target: 5.6
12+
- php_ver_target: 7.0
13+
- php_ver_target: 7.1
14+
15+
## Cache composer bits
16+
cache:
17+
- '%LOCALAPPDATA%\Composer\files -> composer.lock'
18+
19+
## Set up environment varriables
20+
init:
21+
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
22+
- SET COMPOSER_NO_INTERACTION=1
23+
- SET PHP=1
24+
- SET ANSICON=121x90 (121x90)
25+
26+
## Install PHP and composer, and run the appropriate composer command
27+
install:
28+
- IF EXIST c:\tools\php (SET PHP=0)
29+
- ps: appveyor-retry cinst --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $Env:php_ver_target | Select-Object -first 1) -replace '[php|]','')
30+
- cd c:\tools\php
31+
- IF %PHP%==1 copy php.ini-production php.ini /Y
32+
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
33+
- IF %PHP%==1 echo extension_dir=ext >> php.ini
34+
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
35+
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
36+
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
37+
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
38+
- appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
39+
- cd c:\projects\php-project-workspace
40+
- appveyor-retry composer install --no-progress --profile
41+
- composer show
42+
43+
## Run the actual test
44+
test_script:
45+
- cd c:\projects\php-project-workspace
46+
- vendor/bin/phpunit -c phpunit.xml.dist

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy