-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Microsoft.AspNetCore.AzureAppServicesIntegration package (#1)
Add Microsoft.AspNetCore.Hosting.Azure.AppServices package
- Loading branch information
Showing
22 changed files
with
676 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain | ||
|
||
*.jpg binary | ||
*.png binary | ||
*.gif binary | ||
|
||
*.cs text=auto diff=csharp | ||
*.vb text=auto | ||
*.resx text=auto | ||
*.c text=auto | ||
*.cpp text=auto | ||
*.cxx text=auto | ||
*.h text=auto | ||
*.hxx text=auto | ||
*.py text=auto | ||
*.rb text=auto | ||
*.java text=auto | ||
*.html text=auto | ||
*.htm text=auto | ||
*.css text=auto | ||
*.scss text=auto | ||
*.sass text=auto | ||
*.less text=auto | ||
*.js text=auto | ||
*.lisp text=auto | ||
*.clj text=auto | ||
*.sql text=auto | ||
*.php text=auto | ||
*.lua text=auto | ||
*.m text=auto | ||
*.asm text=auto | ||
*.erl text=auto | ||
*.fs text=auto | ||
*.fsx text=auto | ||
*.hs text=auto | ||
|
||
*.csproj text=auto | ||
*.vbproj text=auto | ||
*.fsproj text=auto | ||
*.dbproj text=auto | ||
*.sln text=auto eol=crlf | ||
|
||
*.sh eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[Oo]bj/ | ||
[Bb]in/ | ||
TestResults/ | ||
.nuget/ | ||
_ReSharper.*/ | ||
packages/ | ||
artifacts/ | ||
PublishProfiles/ | ||
*.user | ||
*.suo | ||
*.cache | ||
*.docstates | ||
_ReSharper.* | ||
nuget.exe | ||
*net45.csproj | ||
*net451.csproj | ||
*k10.csproj | ||
*.psess | ||
*.vsp | ||
*.pidb | ||
*.userprefs | ||
*DS_Store | ||
*.ncrunchsolution | ||
*.*sdf | ||
*.ipch | ||
*.sln.ide | ||
project.lock.json | ||
.vs | ||
.build/ | ||
.testPublish/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
language: csharp | ||
sudo: required | ||
dist: trusty | ||
addons: | ||
apt: | ||
packages: | ||
- gettext | ||
- libcurl4-openssl-dev | ||
- libicu-dev | ||
- libssl-dev | ||
- libunwind8 | ||
- zlib1g | ||
env: | ||
global: | ||
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
- DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
mono: | ||
- 4.0.5 | ||
os: | ||
- linux | ||
- osx | ||
osx_image: xcode7.1 | ||
branches: | ||
only: | ||
- master | ||
- release | ||
- dev | ||
- /^(.*\/)?ci-.*$/ | ||
before_install: | ||
- if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install openssl; ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi | ||
script: | ||
- ./build.sh --quiet verify | ||
notifications: | ||
webhooks: | ||
secure: "QLltxzNQ+TUgMurX3FuWB37LVsRx6kZBTXk4JG/BELqO5/Xuwzf8ChElW29d4AbwOeYv5ONYyrvdnLtel8MJCMs8rCxZ2kZZtmUtGdUpPeMavmrvDYQeNqHhFYpLu+bEjxuilGoVI2qonI29S3Q9fC+grXsktGPwPmhyulHbwkk=" | ||
on_success: always | ||
on_failure: always | ||
on_start: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 14 | ||
VisualStudioVersion = 14.0.25420.1 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.AzureAppServicesIntegration", "src\Microsoft.AspNetCore.AzureAppServicesIntegration\Microsoft.AspNetCore.AzureAppServicesIntegration.xproj", "{5916BEB5-0969-469B-976C-A392E015DFAC}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{FF9B744E-6C59-40CC-9E41-9D2EBD292435}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{33C2323B-0BCC-471B-86D0-AF872FDC7BEA}" | ||
EndProject | ||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.AzureAppServicesIntegration.Test", "test\Microsoft.AspNetCore.AzureAppServicesIntegration.Tests\Microsoft.AspNetCore.AzureAppServicesIntegration.Test.xproj", "{4106DB10-E09F-480E-9CE6-B39235512EE6}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2FFE2B87-BF8A-4B38-ADAB-2FE2F9BC4A7C}" | ||
ProjectSection(SolutionItems) = preProject | ||
global.json = global.json | ||
NuGet.config = NuGet.config | ||
EndProjectSection | ||
EndProject | ||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "AzureAppServicesSample", "sample\AzureAppServicesSample\AzureAppServicesSample.xproj", "{05A4D308-B162-4194-BC5E-88CCB4DBD318}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{37237C93-6855-40D9-9E60-418B093EF49A}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{5916BEB5-0969-469B-976C-A392E015DFAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{5916BEB5-0969-469B-976C-A392E015DFAC}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{5916BEB5-0969-469B-976C-A392E015DFAC}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{5916BEB5-0969-469B-976C-A392E015DFAC}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{4106DB10-E09F-480E-9CE6-B39235512EE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{4106DB10-E09F-480E-9CE6-B39235512EE6}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{4106DB10-E09F-480E-9CE6-B39235512EE6}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{4106DB10-E09F-480E-9CE6-B39235512EE6}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{05A4D308-B162-4194-BC5E-88CCB4DBD318}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{05A4D308-B162-4194-BC5E-88CCB4DBD318}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{05A4D308-B162-4194-BC5E-88CCB4DBD318}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{05A4D308-B162-4194-BC5E-88CCB4DBD318}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(NestedProjects) = preSolution | ||
{5916BEB5-0969-469B-976C-A392E015DFAC} = {FF9B744E-6C59-40CC-9E41-9D2EBD292435} | ||
{4106DB10-E09F-480E-9CE6-B39235512EE6} = {33C2323B-0BCC-471B-86D0-AF872FDC7BEA} | ||
{05A4D308-B162-4194-BC5E-88CCB4DBD318} = {37237C93-6855-40D9-9E60-418B093EF49A} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<add key="AspNetCore" value="https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json" /> | ||
<add key="NuGet" value="https://api.nuget.org/v3/index.json" /> | ||
</packageSources> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"adx": { // Packages written by the ADX team and that ship on NuGet.org | ||
"rules": [ | ||
"AdxVerificationCompositeRule" | ||
], | ||
"packages": { | ||
"Microsoft.AspNetCore.Hosting.Azure.AppServices": { } | ||
} | ||
}, | ||
"Default": { // Rules to run for packages not listed in any other set. | ||
"rules": [ | ||
"DefaultCompositeRule" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
init: | ||
- git config --global core.autocrlf true | ||
branches: | ||
only: | ||
- master | ||
- release | ||
- dev | ||
- /^(.*\/)?ci-.*$/ | ||
build_script: | ||
- build.cmd verify | ||
clone_depth: 1 | ||
test: off | ||
deploy: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@ECHO OFF | ||
PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';& '%~dp0build.ps1' %*; exit $LASTEXITCODE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
$ErrorActionPreference = "Stop" | ||
|
||
function DownloadWithRetry([string] $url, [string] $downloadLocation, [int] $retries) | ||
{ | ||
while($true) | ||
{ | ||
try | ||
{ | ||
Invoke-WebRequest $url -OutFile $downloadLocation | ||
break | ||
} | ||
catch | ||
{ | ||
$exceptionMessage = $_.Exception.Message | ||
Write-Host "Failed to download '$url': $exceptionMessage" | ||
if ($retries -gt 0) { | ||
$retries-- | ||
Write-Host "Waiting 10 seconds before retrying. Retries left: $retries" | ||
Start-Sleep -Seconds 10 | ||
|
||
} | ||
else | ||
{ | ||
$exception = $_.Exception | ||
throw $exception | ||
} | ||
} | ||
} | ||
} | ||
|
||
cd $PSScriptRoot | ||
|
||
$repoFolder = $PSScriptRoot | ||
$env:REPO_FOLDER = $repoFolder | ||
|
||
$koreBuildZip="https://github.com/aspnet/KoreBuild/archive/dev.zip" | ||
if ($env:KOREBUILD_ZIP) | ||
{ | ||
$koreBuildZip=$env:KOREBUILD_ZIP | ||
} | ||
|
||
$buildFolder = ".build" | ||
$buildFile="$buildFolder\KoreBuild.ps1" | ||
|
||
if (!(Test-Path $buildFolder)) { | ||
Write-Host "Downloading KoreBuild from $koreBuildZip" | ||
|
||
$tempFolder=$env:TEMP + "\KoreBuild-" + [guid]::NewGuid() | ||
New-Item -Path "$tempFolder" -Type directory | Out-Null | ||
|
||
$localZipFile="$tempFolder\korebuild.zip" | ||
|
||
DownloadWithRetry -url $koreBuildZip -downloadLocation $localZipFile -retries 6 | ||
|
||
Add-Type -AssemblyName System.IO.Compression.FileSystem | ||
[System.IO.Compression.ZipFile]::ExtractToDirectory($localZipFile, $tempFolder) | ||
|
||
New-Item -Path "$buildFolder" -Type directory | Out-Null | ||
copy-item "$tempFolder\**\build\*" $buildFolder -Recurse | ||
|
||
# Cleanup | ||
if (Test-Path $tempFolder) { | ||
Remove-Item -Recurse -Force $tempFolder | ||
} | ||
} | ||
|
||
&"$buildFile" $args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/usr/bin/env bash | ||
repoFolder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
cd $repoFolder | ||
|
||
koreBuildZip="https://github.com/aspnet/KoreBuild/archive/dev.zip" | ||
if [ ! -z $KOREBUILD_ZIP ]; then | ||
koreBuildZip=$KOREBUILD_ZIP | ||
fi | ||
|
||
buildFolder=".build" | ||
buildFile="$buildFolder/KoreBuild.sh" | ||
|
||
if test ! -d $buildFolder; then | ||
echo "Downloading KoreBuild from $koreBuildZip" | ||
|
||
tempFolder="/tmp/KoreBuild-$(uuidgen)" | ||
mkdir $tempFolder | ||
|
||
localZipFile="$tempFolder/korebuild.zip" | ||
|
||
retries=6 | ||
until (wget -O $localZipFile $koreBuildZip 2>/dev/null || curl -o $localZipFile --location $koreBuildZip 2>/dev/null) | ||
do | ||
echo "Failed to download '$koreBuildZip'" | ||
if [ "$retries" -le 0 ]; then | ||
exit 1 | ||
fi | ||
retries=$((retries - 1)) | ||
echo "Waiting 10 seconds before retrying. Retries left: $retries" | ||
sleep 10s | ||
done | ||
|
||
unzip -q -d $tempFolder $localZipFile | ||
|
||
mkdir $buildFolder | ||
cp -r $tempFolder/**/build/** $buildFolder | ||
|
||
chmod +x $buildFile | ||
|
||
# Cleanup | ||
if test ! -d $tempFolder; then | ||
rm -rf $tempFolder | ||
fi | ||
fi | ||
|
||
$buildFile -r $repoFolder "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"projects": [ "src" ] | ||
} |
Oops, something went wrong.