forked from Azure/azure-functions-host
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
288 changed files
with
3,978 additions
and
11,174 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 |
---|---|---|
|
@@ -2,6 +2,8 @@ bin | |
obj | ||
csx | ||
.vs | ||
.vscode | ||
.DS_Store | ||
edge | ||
Publish | ||
|
||
|
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.Web.SkipStrongNames" version="1.0.0" /> | ||
<package id="xunit.MSBuild" version="2.0.0" /> | ||
</packages> |
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,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<add key="nuget.org" value="https://www.nuget.org/api/v2/" /> | ||
<add key="azure_app_service" value="https://www.myget.org/F/azure-appservice/api/v2" /> | ||
<add key="buildTools" value="https://www.myget.org/F/30de4ee06dd54956a82013fa17a3accb/" /> | ||
<add key="AspNetVNext" value="https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json" /> | ||
</packageSources> | ||
</configuration> |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,38 +1,62 @@ | ||
version: 1.0.{build} | ||
version: 2.0.{build} | ||
pull_requests: | ||
do_not_increment_build_number: true | ||
branches: | ||
only: | ||
- dev | ||
- master | ||
- fsharp | ||
- next | ||
- core | ||
max_jobs: 1 | ||
image: Visual Studio 2017 | ||
clone_folder: c:\projects\azure-webjobs-sdk-script | ||
init: | ||
- ps: $env:Path = "c:\tools\php;c:\python35;C:\Program Files (x86)\Microsoft SDKs\F#\4.0\Framework\v4.0;" + $env:Path; | ||
clone_folder: c:\azure-webjobs-sdk-script | ||
install: | ||
- ps: >- | ||
# Download .NET Core 2.0 SDK and add to PATH | ||
$urlCurrent = "https://download.microsoft.com/download/1/B/4/1B4DE605-8378-47A5-B01B-2C79D6C55519/dotnet-sdk-2.0.0-win-x64.zip" | ||
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = "true" | ||
$env:DOTNET_CLI_TELEMETRY_OPTOUT = "true" | ||
$env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk" | ||
mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null | ||
$tempFileCurrent = [System.IO.Path]::GetTempFileName() | ||
(New-Object System.Net.WebClient).DownloadFile($urlCurrent, $tempFileCurrent) | ||
Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory($tempFileCurrent, $env:DOTNET_INSTALL_DIR) | ||
$env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path" | ||
$env:CommitHash = "$env:APPVEYOR_REPO_COMMIT" | ||
mkdir c:\tools\php | out-null | ||
Invoke-WebRequest https://azfunc.blob.core.windows.net/public/php-7.1.3-Win32-VC14-x86.zip -OutFile c:\tools\php\php.zip | ||
Add-Type -AssemblyName System.IO.Compression.FileSystem | ||
[System.IO.Compression.ZipFile]::ExtractToDirectory("c:\tools\php\php.zip", "c:\tools\php") | ||
Install-Product node 6.11.2 x86 | ||
Install-Product node 6.5.0 x86 | ||
cache: '%USERPROFILE%\.nuget\packages' | ||
build_script: | ||
- cmd: msbuild "WebJobs.Script.proj" /target:EnableSkipStrongNames;PackageScriptHost;PackageWebHost;TestBuild /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /property:Buildnumber=%APPVEYOR_BUILD_NUMBER%;Configuration=Release | ||
- ps: > | ||
dotnet --version | ||
dotnet build .\WebJobs.Script.sln -v q | ||
dotnet pack src\WebJobs.Script\WebJobs.Script.csproj -o ..\..\buildoutput --no-build --version-suffix "-$env:APPVEYOR_BUILD_NUMBER" | ||
dotnet pack src\WebJobs.Script.WebHost\WebJobs.Script.WebHost.csproj -o ..\..\buildoutput --no-build --version-suffix "-$env:APPVEYOR_BUILD_NUMBER" | ||
test_script: | ||
- cmd: runappveyortests.cmd | ||
- ps: >- | ||
# dotnet test .\test\WebJobs.Script.Scaling.Tests\ -v q --no-build -p:ParallelizeTestCollections=false | ||
# dotnet test .\test\WebJobs.Script.Tests\ -v q --no-build -p:ParallelizeTestCollections=false | ||
# Skipping integration tests for initial build | ||
# dotnet test .\test\WebJobs.Script.Tests.Integration\ -v q --no-build | ||
artifacts: | ||
- path: bin\Packages\*.zip | ||
name: Runtime | ||
- path: bin\Packages\*.nupkg | ||
name: NuGet | ||
hosts: | ||
api.nuget.org: 93.184.221.200 | ||
dist.nuget.org: 93.184.221.200 | ||
- path: buildoutput\*.nupkg | ||
name: Binaries |
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,23 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<Version>2.0.0-beta1$(VersionSuffix)</Version> | ||
<CommitHash Condition="$(CommitHash) == ''">N/A</CommitHash> | ||
<InformationalVersion>$(Version) Commit hash: $(CommitHash)</InformationalVersion> | ||
<Authors>Microsoft</Authors> | ||
<Company>Microsoft</Company> | ||
<Product>Azure WebJobs SDK Script Runtime</Product> | ||
<PackageProjectUrl>http://go.microsoft.com/fwlink/?LinkID=320972</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/Azure/azure-webjobs-sdk-script</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<Copyright>© .NET Foundation. All rights reserved.</Copyright> | ||
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance> | ||
<PackageLicenseUrl>http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_enu.htm</PackageLicenseUrl> | ||
<PackageIconUrl>https://raw.githubusercontent.com/Azure/azure-webjobs-sdk/dev/webjobs.png</PackageIconUrl> | ||
<CodeAnalysisRuleSet>$(SolutionDir)\src\src.ruleset</CodeAnalysisRuleSet> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<AdditionalFiles Include="$(SolutionDir)\stylecop.json" Link="stylecop.json" /> | ||
</ItemGroup> | ||
</Project> |
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
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 |
---|---|---|
@@ -1,27 +1,12 @@ | ||
using System.Net; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
public static Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log) | ||
public static IActionResult Run(string req,TraceWriter log) | ||
{ | ||
var queryParams = req.GetQueryNameValuePairs() | ||
.ToDictionary(p => p.Key, p => p.Value, StringComparer.OrdinalIgnoreCase); | ||
return new OkObjectResult(new Test { Name = "blah" }); | ||
} | ||
|
||
log.Info(string.Format("C# HTTP trigger function processed a request. {0}", req.RequestUri)); | ||
|
||
HttpResponseMessage res = null; | ||
if (queryParams.TryGetValue("name", out string name)) | ||
{ | ||
res = new HttpResponseMessage(HttpStatusCode.OK) | ||
{ | ||
Content = new StringContent("Hello " + name) | ||
}; | ||
} | ||
else | ||
{ | ||
res = new HttpResponseMessage(HttpStatusCode.BadRequest) | ||
{ | ||
Content = new StringContent("Please pass a name on the query string") | ||
}; | ||
} | ||
|
||
return Task.FromResult(res); | ||
public class Test | ||
{ | ||
public string Name { get; set; } | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.