mirror of
https://github.com/danog/dns.git
synced 2025-01-23 05:51:11 +01:00
Change appveyor.yml, it's enough to run one version of PHP on Windows
This commit is contained in:
parent
b05d11912b
commit
2d5a7ab37b
25
appveyor.yml
25
appveyor.yml
@ -1,28 +1,25 @@
|
||||
build: false
|
||||
shallow_clone: true
|
||||
|
||||
platform:
|
||||
- x86
|
||||
- x64
|
||||
clone_folder: c:\projects\php-project-workspace
|
||||
|
||||
environment:
|
||||
matrix:
|
||||
- php_ver_target: 7.0
|
||||
- php_ver_target: 7.1
|
||||
clone_folder: c:\projects\amphp
|
||||
|
||||
## Cache composer bits
|
||||
cache:
|
||||
- '%LOCALAPPDATA%\Composer\files -> composer.lock'
|
||||
- c:\tools\php -> appveyor.yml
|
||||
|
||||
## Set up environment variables
|
||||
init:
|
||||
- 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:
|
||||
- IF EXIST c:\tools\php (SET PHP=0)
|
||||
- ps: appveyor-retry cinst --ignore-checksums -r -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $Env:php_ver_target | Select-Object -first 1) -replace '[php|]','')
|
||||
- IF %PHP%==1 cinst -y OpenSSL.Light
|
||||
- IF %PHP%==1 cinst -y php
|
||||
- cd c:\tools\php
|
||||
- IF %PHP%==1 copy php.ini-production php.ini /Y
|
||||
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
|
||||
@ -32,11 +29,9 @@ install:
|
||||
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
|
||||
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
|
||||
- appveyor DownloadFile https://getcomposer.org/composer.phar
|
||||
- cd c:\projects\php-project-workspace
|
||||
- appveyor-retry composer update --no-progress -n
|
||||
- composer show
|
||||
- cd c:\projects\amphp
|
||||
- composer install --prefer-dist --no-progress
|
||||
|
||||
## Run the actual test
|
||||
test_script:
|
||||
- cd c:\projects\php-project-workspace
|
||||
- cd c:\projects\amphp
|
||||
- vendor/bin/phpunit --colors=always
|
||||
|
@ -76,7 +76,7 @@ class BasicResolver implements Resolver {
|
||||
return $records;
|
||||
}
|
||||
|
||||
for ($cnames = 0; $cnames < 5; $cnames++) {
|
||||
for ($redirects = 0; $redirects < 5; $redirects++) {
|
||||
try {
|
||||
if ($typeRestriction) {
|
||||
$records = yield $this->query($name, $typeRestriction);
|
||||
|
Loading…
x
Reference in New Issue
Block a user