|
Packit |
2997f0 |
version: 0.11.4-R-pre{build}
|
|
Packit |
2997f0 |
pull_requests:
|
|
Packit |
2997f0 |
do_not_increment_build_number: true
|
|
Packit |
2997f0 |
image: Visual Studio 2013
|
|
Packit |
2997f0 |
configuration: Release
|
|
Packit |
2997f0 |
environment:
|
|
Packit |
2997f0 |
matrix:
|
|
Packit |
2997f0 |
- platform: x64
|
|
Packit |
2997f0 |
- platform: win32
|
|
Packit |
2997f0 |
install:
|
|
Packit |
2997f0 |
- ps: "$OpenSSLVersion = \"1_0_2o\"\n$OpenSSLExe = \"OpenSSL-$OpenSSLVersion.exe\"\n\nRemove-Item C:\\OpenSSL-Win32 -recurse\nRemove-Item C:\\OpenSSL-Win64 -recurse\n\nWrite-Host \"Installing OpenSSL v1.0 32-bit ...\" -ForegroundColor Cyan\nWrite-Host \"Downloading...\"\n$exePath = \"$($env:USERPROFILE)\\Win32OpenSSL-1_0_2o.exe\"\n(New-Object Net.WebClient).DownloadFile('https://slproweb.com/download/Win32OpenSSL-1_0_2o.exe', $exePath)\nWrite-Host \"Installing...\"\ncmd /c start /wait $exePath /silent /verysilent /sp- /suppressmsgboxes /DIR=C:\\OpenSSL-Win32\nWrite-Host \"Installed\" -ForegroundColor Green\n\nWrite-Host \"Installing OpenSSL v1.0 64-bit ...\" -ForegroundColor Cyan\nWrite-Host \"Downloading...\"\n$exePath = \"$($env:USERPROFILE)\\Win64OpenSSL-1_0_2o.exe\"\n(New-Object Net.WebClient).DownloadFile('https://slproweb.com/download/Win64OpenSSL-1_0_2o.exe', $exePath)\nWrite-Host \"Installing...\"\ncmd /c start /wait $exePath /silent /verysilent /sp- /suppressmsgboxes /DIR=C:\\OpenSSL-Win64\nWrite-Host \"Installed\" -ForegroundColor Green\n\nif (!(Test-Path(\"C:\\OpenSSL-Win32\"))) {\n echo \"Downloading https://slproweb.com/download/Win32$OpenSSLExe\"\n Start-FileDownload 'https://slproweb.com/download/Win32$OpenSSLExe'\n Start-Process \"Win32$OpenSSLExe\" -ArgumentList \"/silent /verysilent /sp- /suppressmsgboxes\" -Wait\n} else {\n echo \"OpenSSL-Win32 already exists: not downloading\"\n}\n\nif (!(Test-Path(\"C:\\OpenSSL-Win64\"))) {\n echo \"Downloading https://slproweb.com/download/Win64$OpenSSLExe\"\n Start-FileDownload 'https://slproweb.com/download/Win64$OpenSSLExe' \n Start-Process \"Win64$OpenSSLExe\" -ArgumentList \"/silent /verysilent /sp- /suppressmsgboxes\" -Wait\n} else {\n echo \"OpenSSL-Win64 already exists: not downloading\"\n}\n\n\n\n# Download the CoApp tools.\n$msiPath = \"$($env:USERPROFILE)\\CoApp.Tools.Powershell.msi\"\n(New-Object Net.WebClient).DownloadFile('http://coapp.org/files/CoApp.Tools.Powershell.msi', $msiPath)\n\n# Install the CoApp tools from the downloaded .msi.\nStart-Process -FilePath msiexec -ArgumentList /i, $msiPath, /quiet -Wait\n\n# Make the tools available for later PS scripts to use.\n$env:PSModulePath = $env:PSModulePath + ';C:\\Program Files (x86)\\Outercurve Foundation\\Modules'\nImport-Module CoApp\n\n# Install NuGet\n#Install-PackageProvider NuGet -MinimumVersion '2.8.5.201' -Force\n#Import-PackageProvider NuGet -MinimumVersion '2.8.5.201' -Force\n\n# Install CoApp for creating nuget packages\n#$msiPath = \"$($env:USERPROFILE)\\CoApp.Tools.Powershell.msi\"\n#(New-Object #Net.WebClient).DownloadFile('http://downloads.coapp.org/files/CoApp.Tools.Powershell.msi', $msiPath)\n#cmd /c start /wait msiexec /i \"$msiPath\" /quiet\n\n# Install CoApp module\n#Install-Module CoApp -Force"
|
|
Packit |
2997f0 |
cache:
|
|
Packit |
2997f0 |
- c:\OpenSSL-Win32
|
|
Packit |
2997f0 |
- c:\OpenSSL-Win64
|
|
Packit |
2997f0 |
nuget:
|
|
Packit |
2997f0 |
account_feed: true
|
|
Packit |
2997f0 |
project_feed: true
|
|
Packit |
2997f0 |
disable_publish_on_pr: true
|
|
Packit |
2997f0 |
before_build:
|
|
Packit |
2997f0 |
- cmd: nuget restore win32/librdkafka.sln
|
|
Packit |
2997f0 |
build:
|
|
Packit |
2997f0 |
project: win32/librdkafka.sln
|
|
Packit |
2997f0 |
publish_nuget: true
|
|
Packit |
2997f0 |
publish_nuget_symbols: true
|
|
Packit |
2997f0 |
include_nuget_references: true
|
|
Packit |
2997f0 |
parallel: true
|
|
Packit |
2997f0 |
verbosity: normal
|
|
Packit |
2997f0 |
test_script:
|
|
Packit |
2997f0 |
- cmd: if exist DISABLED\win32\outdir\v140 ( win32\outdir\v140\%PLATFORM%\%CONFIGURATION%\tests.exe -l -p1 ) else ( win32\outdir\v120\%PLATFORM%\%CONFIGURATION%\tests.exe -l -p1 )
|
|
Packit |
2997f0 |
artifacts:
|
|
Packit |
2997f0 |
- path: test_report*.json
|
|
Packit |
2997f0 |
name: Test report
|
|
Packit |
2997f0 |
- path: '*.nupkg'
|
|
Packit |
2997f0 |
name: Packages
|
|
Packit |
2997f0 |
- path: '**\*.dll'
|
|
Packit |
2997f0 |
name: Libraries
|
|
Packit |
2997f0 |
- path: '**\*.lib'
|
|
Packit |
2997f0 |
name: Libraries
|
|
Packit |
2997f0 |
- path: '**\*.pdb'
|
|
Packit |
2997f0 |
name: Libraries
|
|
Packit |
2997f0 |
- path: '**\*.exe'
|
|
Packit |
2997f0 |
name: Executables
|
|
Packit |
2997f0 |
before_deploy:
|
|
Packit |
2997f0 |
- ps: >-
|
|
Packit |
2997f0 |
# FIXME: Add to Deployment condition above:
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
# APPVEYOR_REPO_TAG = true
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
# This is the CoApp .autopkg file to create.
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
$autopkgFile = "win32/librdkafka.autopkg"
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
# Get the ".autopkg.template" file, replace "@version" with the Appveyor version number, then save to the ".autopkg" file.
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
cat ($autopkgFile + ".template") | % { $_ -replace "@version", $env:appveyor_build_version } > $autopkgFile
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
# Use the CoApp tools to create NuGet native packages from the .autopkg.
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
Write-NuGetPackage $autopkgFile
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
# Push all newly created .nupkg files as Appveyor artifacts for later deployment.
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
Get-ChildItem .\*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
|
|
Packit |
2997f0 |
deploy:
|
|
Packit |
2997f0 |
- provider: S3
|
|
Packit |
2997f0 |
access_key_id:
|
|
Packit |
2997f0 |
secure: t+Xo4x1mYVbqzvUDlnuMgFGp8LjQJNOfsDUAMxBsVH4=
|
|
Packit |
2997f0 |
secret_access_key:
|
|
Packit |
2997f0 |
secure: SNziQPPJs4poCHM7dk6OxufUYcGQhMWiNPx6Y1y6DYuWGjPc3K0APGeousLHsbLv
|
|
Packit |
2997f0 |
region: us-west-1
|
|
Packit |
2997f0 |
bucket: librdkafka-ci-packages
|
|
Packit |
2997f0 |
folder: librdkafka/p-librdkafka__bld-appveyor__plat-windows__arch-$(platform)__bldtype-$(configuration)__tag-$(APPVEYOR_REPO_TAG_NAME)__sha-$(APPVEYOR_REPO_COMMIT)__bid-$(APPVEYOR_BUILD_ID)
|
|
Packit |
2997f0 |
artifact: /.*\.(nupkg)/
|
|
Packit |
2997f0 |
max_error_retry: 3
|
|
Packit |
2997f0 |
on:
|
|
Packit |
2997f0 |
APPVEYOR_REPO_TAG: true
|
|
Packit |
2997f0 |
notifications:
|
|
Packit |
2997f0 |
- provider: Email
|
|
Packit |
2997f0 |
to:
|
|
Packit |
2997f0 |
- magnus@edenhill.se
|
|
Packit |
2997f0 |
on_build_success: false
|
|
Packit |
2997f0 |
on_build_failure: true
|
|
Packit |
2997f0 |
on_build_status_changed: true
|