Skip to content

Commit

Permalink
Reworked Release Build
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Aug 30, 2022
1 parent ffccfd9 commit 854b967
Show file tree
Hide file tree
Showing 2 changed files with 319 additions and 252 deletions.
319 changes: 319 additions & 0 deletions .devops/azure-pipelines.release-hotchocolate.backup
@@ -0,0 +1,319 @@
trigger: none

stages:
- stage: release
displayName: "Release"
dependsOn: []
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/Fusion
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: 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: []
steps:
- task: DeleteFiles@1
displayName: "Clean AspNetCore resources"
inputs:
SourceFolder: './src/HotChocolate/AspNetCore/src/AspNetCore/Resources'
Contents: '**/*'
RemoveDotFiles: true
- task: DownloadPipelineArtifact@2
displayName: "Integrate Banana Cake pop"
inputs:
buildType: 'specific'
project: 'aefb2b59-b7d8-48cf-8cb0-30fdea720770'
definition: '84'
buildVersionToDownload: 'latest'
artifactName: 'Middleware'
targetPath: './src/HotChocolate/AspNetCore/src/AspNetCore/Resources'
- task: PublishBuildArtifacts@1
displayName: "Upload AspNetCore Code"
inputs:
artifactName: aspnetcore
pathtoPublish: "./src/HotChocolate/AspNetCore/src/AspNetCore"
- task: CmdLine@2
displayName: "Create Packages"
inputs:
script: "./build.cmd pack"
- task: PublishBuildArtifacts@1
displayName: "Upload Packages"
inputs:
artifactName: packages
pathtoPublish: "output/packages"
- job: Publish
displayName: "Publish"
dependsOn: [Pack]
steps:
- task: DownloadBuildArtifacts@0
displayName: "Download Packages"
inputs:
artifactName: "packages"
downloadPath: "$(Build.Repository.LocalPath)/output"
- task: CmdLine@2
displayName: "Push Packages to NuGet"
inputs:
script: "./build.cmd publish --skip"
- task: GitHubRelease@0
displayName: "Update GitHub Release"
inputs:
gitHubConnection: "ChilliCream GitHub"
action: edit
tag: "$(GitHubVersion)"
title: "$(GitHubVersion)"
assets: "$(Build.Repository.LocalPath)/output/packages/*.*"
assetUploadMode: replace
isPreRelease: true
releaseNotesSource: input
releaseNotes: "For more details click [here](https://github.com/ChilliCream/hotchocolate/blob/master/CHANGELOG.md) to get to our CHANGELOG."

0 comments on commit 854b967

Please sign in to comment.