From 13b89a32ab7acb94dcd70e07d23edb7be253aa33 Mon Sep 17 00:00:00 2001 From: Anthony RICHARD Date: Thu, 11 May 2023 21:30:43 +0100 Subject: [PATCH] test drone --- .drone.yml | 6 +- Sources/{TestPipeline => }/TestPipeline.sln | 68 +++++++++---------- Sources/TestPipeline/TestPipeline/Program.cs | 2 - .../TestPipeline/TestPipeline.csproj | 10 --- 4 files changed, 34 insertions(+), 52 deletions(-) rename Sources/{TestPipeline => }/TestPipeline.sln (62%) delete mode 100644 Sources/TestPipeline/TestPipeline/Program.cs delete mode 100644 Sources/TestPipeline/TestPipeline/TestPipeline.csproj diff --git a/.drone.yml b/.drone.yml index 68c33d4..f17adcf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,7 +13,7 @@ steps: - name: docs path: /docs commands: - - cd Sources/TestPipeline/ + - cd Sources/ - dotnet restore TestPipeline.sln - dotnet build TestPipeline.sln -c Release --no-restore - dotnet publish TestPipeline.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release @@ -21,7 +21,7 @@ steps: - name: tests image: mcr.microsoft.com/dotnet/sdk:7.0 commands: - - cd Sources/TestPipeline/ + - cd Sources/ - dotnet restore TestPipeline.sln - dotnet test TestPipeline.sln --no-restore depends_on: [build] @@ -37,7 +37,7 @@ steps: coverage_exclusions: "Tests/**" commands: - - cd Sources/TestPipeline/ + - cd Sources/ - dotnet restore TestPipeline.sln - dotnet sonarscanner begin /k:$${project_key} /d:sonar.host.url=$${sonar_host} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions=$${coverage_exclusions} /d:sonar.login=$${sonar_token} - dotnet build TestPipeline.sln -c Release --no-restore diff --git a/Sources/TestPipeline/TestPipeline.sln b/Sources/TestPipeline.sln similarity index 62% rename from Sources/TestPipeline/TestPipeline.sln rename to Sources/TestPipeline.sln index f2298ab..2086786 100644 --- a/Sources/TestPipeline/TestPipeline.sln +++ b/Sources/TestPipeline.sln @@ -1,37 +1,31 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.5.33424.131 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestPipeline", "TestPipeline\TestPipeline.csproj", "{DC0B04CC-C4B6-4221-AD4A-98FEEC1A6E8C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Model", "..\Stim.Model\Model.csproj", "{E56E9419-1E68-4C13-9301-54C4630D7A43}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Test", "..\TestProject1\Test.csproj", "{DEF64C4E-BF42-4CDA-BE95-62DD8B01365C}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {DC0B04CC-C4B6-4221-AD4A-98FEEC1A6E8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DC0B04CC-C4B6-4221-AD4A-98FEEC1A6E8C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DC0B04CC-C4B6-4221-AD4A-98FEEC1A6E8C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DC0B04CC-C4B6-4221-AD4A-98FEEC1A6E8C}.Release|Any CPU.Build.0 = Release|Any CPU - {E56E9419-1E68-4C13-9301-54C4630D7A43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E56E9419-1E68-4C13-9301-54C4630D7A43}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E56E9419-1E68-4C13-9301-54C4630D7A43}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E56E9419-1E68-4C13-9301-54C4630D7A43}.Release|Any CPU.Build.0 = Release|Any CPU - {DEF64C4E-BF42-4CDA-BE95-62DD8B01365C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DEF64C4E-BF42-4CDA-BE95-62DD8B01365C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DEF64C4E-BF42-4CDA-BE95-62DD8B01365C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DEF64C4E-BF42-4CDA-BE95-62DD8B01365C}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {5D28C76C-B599-49C7-8CC2-30F448740700} - EndGlobalSection -EndGlobal + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.33424.131 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Model", "Stim.Model\Model.csproj", "{E56E9419-1E68-4C13-9301-54C4630D7A43}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Test", "TestProject1\Test.csproj", "{DEF64C4E-BF42-4CDA-BE95-62DD8B01365C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E56E9419-1E68-4C13-9301-54C4630D7A43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E56E9419-1E68-4C13-9301-54C4630D7A43}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E56E9419-1E68-4C13-9301-54C4630D7A43}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E56E9419-1E68-4C13-9301-54C4630D7A43}.Release|Any CPU.Build.0 = Release|Any CPU + {DEF64C4E-BF42-4CDA-BE95-62DD8B01365C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DEF64C4E-BF42-4CDA-BE95-62DD8B01365C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DEF64C4E-BF42-4CDA-BE95-62DD8B01365C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DEF64C4E-BF42-4CDA-BE95-62DD8B01365C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5D28C76C-B599-49C7-8CC2-30F448740700} + EndGlobalSection +EndGlobal diff --git a/Sources/TestPipeline/TestPipeline/Program.cs b/Sources/TestPipeline/TestPipeline/Program.cs deleted file mode 100644 index 83fa4f4..0000000 --- a/Sources/TestPipeline/TestPipeline/Program.cs +++ /dev/null @@ -1,2 +0,0 @@ -// See https://aka.ms/new-console-template for more information -Console.WriteLine("Hello, World!"); diff --git a/Sources/TestPipeline/TestPipeline/TestPipeline.csproj b/Sources/TestPipeline/TestPipeline/TestPipeline.csproj deleted file mode 100644 index d439800..0000000 --- a/Sources/TestPipeline/TestPipeline/TestPipeline.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - Exe - net7.0 - enable - enable - - -