Skip to content

Commit e2088d1

Browse files
committed
Updated Appveyor config
1 parent bc5d978 commit e2088d1

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

appveyor.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
build: false
22
platform:
3-
- x86
43
- x64
5-
clone_folder: c:\projects\php-pusher-client
6-
4+
clone_folder: c:\projects\php-project-workspace
75

86
## Build matrix for lowest and highest possible targets
97
environment:
108
matrix:
119
- dependencies: lowest
10+
php_ver_target: 7.0
1211
- dependencies: current
12+
php_ver_target: 7.0
1313
- dependencies: highest
14+
php_ver_target: 7.0
1415

1516
## Cache composer bits
1617
cache:
17-
- c:\tools\php -> appveyor.yml
1818
- '%LOCALAPPDATA%\Composer\files -> composer.lock'
1919

2020
## Set up environment varriables
@@ -27,8 +27,7 @@ init:
2727
## Install PHP and composer, and run the appropriate composer command
2828
install:
2929
- IF EXIST c:\tools\php (SET PHP=0)
30-
- IF %PHP%==1 cinst -y OpenSSL.Light
31-
- IF %PHP%==1 cinst -y php
30+
- ps: 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|]','')
3231
- cd c:\tools\php
3332
- IF %PHP%==1 copy php.ini-production php.ini /Y
3433
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
@@ -37,14 +36,14 @@ install:
3736
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
3837
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
3938
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
40-
- appveyor DownloadFile https://getcomposer.org/composer.phar
41-
- cd c:\projects\php-pusher-client
42-
- IF %dependencies%==lowest composer update --prefer-lowest --no-progress -n
43-
- IF %dependencies%==current composer install --no-progress
44-
- IF %dependencies%==highest composer update --no-progress -n
45-
- composer show -i
39+
- appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
40+
- cd c:\projects\php-project-workspace
41+
- IF %dependencies%==lowest appveyor-retry composer update --prefer-lowest --no-progress --profile -n
42+
- IF %dependencies%==current appveyor-retry composer install --no-progress --profile
43+
- IF %dependencies%==highest appveyor-retry composer update --no-progress --profile -n
44+
- composer show
4645

4746
## Run the actual test
4847
test_script:
49-
- cd c:\projects\php-pusher-client
48+
- cd c:\projects\php-project-workspace
5049
- vendor/bin/phpunit -c phpunit.xml.dist

0 commit comments

Comments
 (0)