Skip to content

Commit

Permalink
Reintegrated tests to release build
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Aug 19, 2022
1 parent 0b98f78 commit efb6dfd
Show file tree
Hide file tree
Showing 2 changed files with 268 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .build/Build.Tests.2.cs
Expand Up @@ -47,6 +47,10 @@ partial class Build
.Produces(TestResultDirectory / "*.trx")
.Executes(() => RunTests(SourceDirectory / "HotChocolate" / "Filters" / "HotChocolate.Filters.sln"));

Target TestHotChocolateFusion => _ => _
.Produces(TestResultDirectory / "*.trx")
.Executes(() => RunTests(SourceDirectory / "HotChocolate" / "Fusion" / "HotChocolate.Fusion.sln"));

Target TestHotChocolateLanguage => _ => _
.Produces(TestResultDirectory / "*.trx")
.Executes(() => RunTests(SourceDirectory / "HotChocolate" / "Language" / "HotChocolate.Language.sln"));
Expand Down
264 changes: 264 additions & 0 deletions .devops/azure-pipelines.release-hotchocolate.yml
Expand Up @@ -7,6 +7,270 @@ stages:
pool:
vmImage: "ubuntu-20.04"
jobs:
- job: TestGreenDonut
displayName: src/GreenDonut
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestGreenDonut --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateAnalyzers
displayName: src/HotChocolate/Analyzers
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateAnalyzers --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateApolloFederation
displayName: src/HotChocolate/ApolloFederation
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateApolloFederation --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateAspNetCore
displayName: src/HotChocolate/AspNetCore
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateAspNetCore --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateAzureFunctions
displayName: src/HotChocolate/AzureFunctions
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateAzureFunctions --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateCodeGeneration
displayName: src/HotChocolate/CodeGeneration
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateCodeGeneration --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateCore
displayName: src/HotChocolate/Core
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateCore --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateData
displayName: src/HotChocolate/Data
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateData --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateDiagnostics
displayName: src/HotChocolate/Diagnostics
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateDiagnostics --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateFilters
displayName: src/HotChocolate/Filters
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateFilters --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateFusion
displayName: src/HotChocolate/Filters
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateFusion --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateLanguage
displayName: src/HotChocolate/Language
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateLanguage --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateMongoDb
displayName: src/HotChocolate/MongoDb
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateMongoDb --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateNeo4J
displayName: src/HotChocolate/Neo4J
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateNeo4J --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolatePersistedQueries
displayName: src/HotChocolate/PersistedQueries
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolatePersistedQueries --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateSpatial
displayName: src/HotChocolate/Spatial
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateSpatial --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateStitching
displayName: src/HotChocolate/Stitching
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateStitching --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestHotChocolateUtilities
displayName: src/HotChocolate/Utilities
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestHotChocolateUtilities --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestStrawberryShakeClient
displayName: src/StrawberryShake/Client
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestStrawberryShakeClient --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestStrawberryShakeCodeGeneration
displayName: src/StrawberryShake/CodeGeneration
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestStrawberryShakeCodeGeneration --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestStrawberryShakeSourceGenerator
displayName: src/StrawberryShake/SourceGenerator
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestStrawberryShakeSourceGenerator --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: TestStrawberryShakeTooling
displayName: src/StrawberryShake/Tooling
steps:
- task: CmdLine@2
displayName: "Run Tests"
inputs:
script: "./build.cmd TestStrawberryShakeTooling --skip --test-partition $(System.JobPositionInPhase)"
- task: PublishBuildArtifacts@1
displayName: "Upload Test Results"
inputs:
artifactName: test-results
pathtoPublish: "output/test-results"
- job: Pack
displayName: "Pack"
dependsOn: []
Expand Down

0 comments on commit efb6dfd

Please sign in to comment.