One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| <# | |
| .SYNOPSIS | |
| Scafolding script for new platform project. | |
| .DESCRIPTION | |
| The script will create a console or api project. | |
| #> | |
| Param( | |
| [Parameter(Mandatory=$True,Position=1)] | |
| [string]$Proj, | |
| [switch]$Api = $False |
| #!/usr/bin/env groovy | |
| // Nombre del servicio | |
| env.SERVICE_NAME = '__SERVICE_NAME__' | |
| //Completar para cada ambiente, nombre del servidor y carpeta de despliegue. | |
| env.SERVER_PROD = "__SERVER_NAME__" | |
| env.FOLDER_PROD = "__FOLDER__\\__SUBFOLDER__" | |
| env.SERVER_TEST = "__SERVER_NAME:__" |
| #!/usr/bin/env groovy | |
| pipeline { | |
| environment { | |
| MSBUILD14 = 'C:\\MSBuild\\14.0\\Bin\\MSBuild.exe' | |
| BUILD_FOLDER = ".\\dist" | |
| } | |
| agent { |
| <# | |
| .SYNOPSIS | |
| This is a Powershell script to bootstrap a Cake build. | |
| .DESCRIPTION | |
| This Powershell script will download NuGet if missing, restore NuGet tools (including Cake) | |
| and execute your Cake build script with the parameters you provide. | |
| .PARAMETER Target | |
| The build script target to run. | |
| .PARAMETER Configuration | |
| The build configuration to use. |
| #!/usr/bin/env bash | |
| ########################################################################## | |
| # This is the Cake bootstrapper script for Linux and OS X. | |
| # This file was downloaded from https://github.com/cake-build/resources | |
| # Feel free to change this file to fit your needs. | |
| ########################################################################## | |
| # Define directories. | |
| SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| #tool nuget:?package=NUnit.ConsoleRunner&version=3.4.0 | |
| #tool "nuget:?package=GitVersion.CommandLine" | |
| #tool nuget:?package=MSBuild.SonarQube.Runner.Tool | |
| #addin nuget:?package=Cake.Sonar | |
| #addin "nuget:?package=Cake.Incubator&version=3.0.0" | |
| ////////////////////////////////////////////////////////////////////// | |
| // ARGUMENTS | |
| ////////////////////////////////////////////////////////////////////// |
| <# | |
| .SYNOPSIS | |
| The script creates a github respository. | |
| .DESCRIPTION | |
| The script will create a github respository and it will add scripts for the correct initialization of a platform project. | |
| #> | |
| Param( | |
| [Parameter(Mandatory=$False, Position=1, HelpMessage="Enter a repository name")] | |
| [string]$Repo = $( Read-Host "Enter a repository name" ), | |
| [Parameter(Mandatory=$False,Position=2)] |
| public class PlatformApiTestFixture : IDisposable | |
| { | |
| public TestServer _testServer; | |
| public PlatformApiTestFixture() | |
| { | |
| } | |
| private void InitServer() | |
| { |
| public class UnitTestModule : IClassFixture<PlatformApiTestFixture> | |
| { | |
| readonly PlatformApiTestFixture _platformFixture; | |
| public UnitTestModule(PlatformApiTestFixture platformFixture) | |
| { | |
| Environment.SetEnvironmentVariable("ASPNETCORE_HOSTINGSTARTUPASSEMBLIES", "GoogleApiGateway"); | |
| _platformFixture = platformFixture; | |
| } | |
| [Fact] |