Skip to content

Commit

Permalink
Initial source code commit
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyoo committed Jul 18, 2019
1 parent 7f72c55 commit 29387fd
Show file tree
Hide file tree
Showing 21 changed files with 1,101 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .editorconfig
@@ -0,0 +1,20 @@
root = true

[*]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false

[{*.js,*.ts}]
indent_size = 2

[*.json]
indent_size = 2

[{*.htm,*.html}]
indent_size = 2

[{*.yaml,*.yml}]
indent_size = 2
27 changes: 27 additions & 0 deletions .vscode/launch.json
@@ -0,0 +1,27 @@
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/test/FunctionApp.Tests/bin/Debug/netcoreapp2.1/FunctionApp.Tests.dll",
"args": [],
"cwd": "${workspaceFolder}/test/FunctionApp.Tests",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
36 changes: 36 additions & 0 deletions .vscode/tasks.json
@@ -0,0 +1,36 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/test/FunctionApp.Tests/FunctionApp.Tests.csproj"
],
"problemMatcher": "$tsc"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/test/FunctionApp.Tests/FunctionApp.Tests.csproj"
],
"problemMatcher": "$tsc"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"${workspaceFolder}/test/FunctionApp.Tests/FunctionApp.Tests.csproj"
],
"problemMatcher": "$tsc"
}
]
}
39 changes: 39 additions & 0 deletions MountebankIntegrationTesting.sln
@@ -0,0 +1,39 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.705
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{8172B8FA-0069-4F4A-AA25-CA343AC0EDDB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FunctionApp", "src\FunctionApp\FunctionApp.csproj", "{1EF3B16D-F3FE-435F-A92F-EA91280C70ED}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{A9A7EE39-1BC4-4F15-8AD6-9DA00C78EB71}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FunctionApp.Tests", "test\FunctionApp.Tests\FunctionApp.Tests.csproj", "{B4D8BF6A-AFB6-41F2-9540-BC940BAE1872}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1EF3B16D-F3FE-435F-A92F-EA91280C70ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1EF3B16D-F3FE-435F-A92F-EA91280C70ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1EF3B16D-F3FE-435F-A92F-EA91280C70ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1EF3B16D-F3FE-435F-A92F-EA91280C70ED}.Release|Any CPU.Build.0 = Release|Any CPU
{B4D8BF6A-AFB6-41F2-9540-BC940BAE1872}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B4D8BF6A-AFB6-41F2-9540-BC940BAE1872}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B4D8BF6A-AFB6-41F2-9540-BC940BAE1872}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B4D8BF6A-AFB6-41F2-9540-BC940BAE1872}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{1EF3B16D-F3FE-435F-A92F-EA91280C70ED} = {8172B8FA-0069-4F4A-AA25-CA343AC0EDDB}
{B4D8BF6A-AFB6-41F2-9540-BC940BAE1872} = {A9A7EE39-1BC4-4F15-8AD6-9DA00C78EB71}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {CA57FB48-A203-4663-908E-98E1E7D069E9}
EndGlobalSection
EndGlobal
77 changes: 77 additions & 0 deletions build/build.yaml
@@ -0,0 +1,77 @@
name: $(Version).$(rev:r)

variables:
- name: Version
value: "1.0.0"

trigger:
branches:
include:
- master
paths:
exclude:
- ".editorconfig"
- ".gitignore"
- "README.md"
- "LICENSE"
- "*.sln"
- "**/*.csproj"

stages:
# Build Pipeline
- stage: Build
jobs:
- job: HostedVs2017
displayName: Hosted VS2017
pool:
name: Hosted VS2017
demands:
- npm
- dotnet
workspace:
clean: all
variables:
- name: DotNetSdkVersion
value: "2.1.701"
- name: Configuration
value: Release

steps:
- task: CmdLine@2
displayName: "Install MounteBank"
inputs:
script: "npm install -g mountebank"
- task: CmdLine@2
displayName: "Install Azure Functions CLI"
inputs:
script: "npm install -g azure-functions-core-tools --unsafe-perm true"
- task: DotNetCoreInstaller@0
displayName: "Install .NET Core SDK"
inputs:
version: $(DotNetSdkVersion)
- task: DotNetCoreCLI@2
displayName: "Restore NuGet Packages"
inputs:
command: restore
projects: "$(Build.SourcesDirectory)/*.sln"
- task: DotNetCoreCLI@2
displayName: "Build Function App"
inputs:
projects: "$(Build.SourcesDirectory)/*.sln"
arguments: "-c $(Configuration)"
- task: CmdLine@2
displayName: "Run MounteBank"
inputs:
script: "start /b mb --noLogFile"
- task: CmdLine@2
displayName: "Run Function App"
inputs:
script: |
cd $(Build.SourcesDirectory)\src\FunctionApp
start /b func host start
- task: DotNetCoreCLI@2
displayName: "Test Function App"
inputs:
command: test
projects: "$(Build.SourcesDirectory)/test/**/*.csproj"
arguments: "-c $(Configuration)"

0 comments on commit 29387fd

Please sign in to comment.