Skip to content

Commit e7d1c53

Browse files
committed
Simplefied AppVeyor config
1 parent fb92847 commit e7d1c53

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

appveyor.bat

Lines changed: 0 additions & 9 deletions
This file was deleted.

appveyor.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,34 @@ environment:
1313
php_ver_target: 7.0
1414
- dependencies: highest
1515
php_ver_target: 7.0
16-
1716
## Cache composer bits
1817
cache:
19-
- C:\ProgramData\chocolatey\bin -> appveyor.yml
20-
- C:\ProgramData\chocolatey\lib -> appveyor.yml
21-
- C:\tools\php -> appveyor.yml
2218
- '%LOCALAPPDATA%\Composer\files -> composer.lock'
2319

2420
## Set up environment varriables
2521
init:
26-
- SET COMPOSER_ROOT_VERSION=dev-master ## Temporary until we tag first versions
2722
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
2823
- SET COMPOSER_NO_INTERACTION=1
2924
- SET PHP=1
3025
- SET ANSICON=121x90 (121x90)
3126

3227
## Install PHP and composer, and run the appropriate composer command
3328
install:
34-
- 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'}
29+
- IF EXIST c:\tools\php (SET PHP=0)
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|]','')
31+
- cd c:\tools\php
32+
- IF %PHP%==1 copy php.ini-production php.ini /Y
33+
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
34+
- IF %PHP%==1 echo extension_dir=ext >> php.ini
35+
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
36+
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
37+
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
38+
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
39+
- appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
3540
- cd c:\projects\php-project-workspace
36-
- IF %dependencies%==lowest appveyor-retry composer update --prefer-lowest --no-progress -n
37-
- IF %dependencies%==current appveyor-retry composer install --no-progress
38-
- IF %dependencies%==highest appveyor-retry composer update --no-progress -n
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
3944
- composer show
4045

4146
## Run the actual test

0 commit comments

Comments
 (0)