Skip to content

Commit

Permalink
Fixed PHP 7.2 build in AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Dec 19, 2017
1 parent 4e3b9f5 commit 3992f96
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ environment:
matrix:
- dependencies: lowest
php_version: 7.1
vc: 14
- dependencies: highest
php_version: 7.1
- dependencies: lowest
php_version: 7.2
vc: 14
#- dependencies: lowest
# php_version: 7.2
# vc: 15
- dependencies: highest
php_version: 7.2
vc: 15

project_directory: c:\projects\slevomat-coding-standard
composer_directory: c:\tools\composer
Expand All @@ -32,7 +36,7 @@ install:
# Download requested PHP version
- ps: If ((Test-Path $Env:php_archive_directory) -eq $False) { New-Item -Path $Env:php_archive_directory -ItemType 'directory' }
- ps: $requested_php_version = %{If ($Env:dependencies -eq 'lowest') { $Env:php_version + '.0' } Else { (((choco search php --exact --all-versions -r | Select-String -pattern $Env:php_version) -replace '[php|]', '') | %{ New-Object System.Version $_ } | Sort-Object | Select-Object -Last 1).ToString() }}
- ps: $php_version_url = %{If ($Env:dependencies -eq 'lowest') { 'http://windows.php.net/downloads/releases/archives/php-' + $requested_php_version + '-nts-Win32-VC14-' + $Env:platform + '.zip' } Else { 'http://windows.php.net/downloads/releases/php-' + $requested_php_version + '-nts-Win32-VC14-' + $Env:platform + '.zip' }}
- ps: $php_version_url = %{If ($Env:dependencies -eq 'lowest') { 'http://windows.php.net/downloads/releases/archives/php-' + $requested_php_version + '-nts-Win32-VC' + $Env:vc + '-' + $Env:platform + '.zip' } Else { 'http://windows.php.net/downloads/releases/php-' + $requested_php_version + '-nts-Win32-VC' + $Env:vc + '-' + $Env:platform + '.zip' }}
- ps: $php_version_file = $Env:php_archive_directory + '\php-' + $requested_php_version + '.zip'
- ps: If ((Test-Path $php_version_file) -eq $False) { appveyor-retry appveyor DownloadFile $php_version_url -FileName $php_version_file }

Expand Down

0 comments on commit 3992f96

Please sign in to comment.