1
1
build : false
2
2
platform :
3
- - x86
4
3
- x64
5
- clone_folder : c:\projects\php-pusher-client
6
-
4
+ clone_folder : c:\projects\php-project-workspace
7
5
8
6
# # Build matrix for lowest and highest possible targets
9
7
environment :
10
8
matrix :
11
9
- dependencies : lowest
10
+ php_ver_target : 7.0
12
11
- dependencies : current
12
+ php_ver_target : 7.0
13
13
- dependencies : highest
14
+ php_ver_target : 7.0
14
15
15
16
# # Cache composer bits
16
17
cache :
17
- - c:\tools\php -> appveyor.yml
18
18
- ' %LOCALAPPDATA%\Composer\files -> composer.lock'
19
19
20
20
# # Set up environment varriables
27
27
# # Install PHP and composer, and run the appropriate composer command
28
28
install :
29
29
- 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|]','')
32
31
- cd c:\tools\php
33
32
- IF %PHP%==1 copy php.ini-production php.ini /Y
34
33
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
@@ -37,14 +36,14 @@ install:
37
36
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
38
37
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
39
38
- 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
46
45
47
46
# # Run the actual test
48
47
test_script :
49
- - cd c:\projects\php-pusher-client
48
+ - cd c:\projects\php-project-workspace
50
49
- vendor/bin/phpunit -c phpunit.xml.dist
0 commit comments