forked from cake-contrib/Cake.Issues.Recipe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use template for Azure Pipelines builds (cake-contrib#525)
- Loading branch information
1 parent
38c043b
commit f6e9666
Showing
30 changed files
with
794 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
parameters: | ||
- name: vmImage | ||
type: string | ||
- name: dotNetVersion | ||
type: string | ||
|
||
jobs: | ||
- job: Test_Frosting_${{ replace(replace(parameters.vmImage,'-','_'),'.','_') }}_Net${{ parameters.dotNetVersion }} | ||
displayName: Integration Tests Frosting ${{ parameters.vmImage }} (.NET ${{ parameters.dotNetVersion }}) | ||
dependsOn: Build | ||
pool: | ||
vmImage: '${{ parameters.vmImage }}' | ||
steps: | ||
- template: ../steps/prepare-test.yml | ||
parameters: | ||
dotNetVersion: ${{ parameters.dotNetVersion }} | ||
- bash: | | ||
./build.sh --verbosity=diagnostic | ||
workingDirectory: ./tests/frosting/net${{ parameters.dotNetVersion }}.0 | ||
displayName: 'Run integration tests' | ||
- publish: $(Build.SourcesDirectory)/tests/frosting/net${{ parameters.dotNetVersion }}.0/build/BuildArtifacts/output | ||
artifact: Integration Tests Frosting ${{ parameters.vmImage }} (.NET ${{ parameters.dotNetVersion }}) | ||
displayName: 'Publish generated reports as build artifact' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
parameters: | ||
- name: vmImage | ||
type: string | ||
- name: dotNetVersion | ||
type: string | ||
|
||
jobs: | ||
- job: Test_Script_Runner_${{ replace(replace(parameters.vmImage,'-','_'),'.','_') }}_Net${{ parameters.dotNetVersion }} | ||
displayName: Integration Tests Script Runner ${{ parameters.vmImage }} (.NET ${{ parameters.dotNetVersion }}) | ||
dependsOn: Build | ||
pool: | ||
vmImage: '${{ parameters.vmImage }}' | ||
steps: | ||
- template: ../steps/prepare-test.yml | ||
parameters: | ||
dotNetVersion: ${{ parameters.dotNetVersion }} | ||
- bash: | | ||
./build.sh --verbosity=diagnostic | ||
workingDirectory: ./tests/script-runner/net${{ parameters.dotNetVersion }}.0 | ||
displayName: 'Run integration tests' | ||
- publish: $(Build.SourcesDirectory)/tests/script-runner/net${{ parameters.dotNetVersion }}.0/BuildArtifacts/output | ||
artifact: Integration Tests Script Runner ${{ parameters.vmImage }} (.NET ${{ parameters.dotNetVersion }}) | ||
displayName: 'Publish generated reports as build artifact' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
parameters: | ||
- name: dotNetVersion | ||
type: string | ||
|
||
steps: | ||
- task: UseDotNet@2 | ||
inputs: | ||
version: '${{ parameters.dotNetVersion }}.x' | ||
displayName: 'Install .NET ${{ parameters.dotNetVersion }}' | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: '20.x' | ||
displayName: 'Install NodeJs 20.x' | ||
- script: | | ||
npm install -g markdownlint-cli | ||
displayName: 'Install required tools' | ||
- download: current | ||
artifact: NuGet Package | ||
displayName: 'Download build artifact' | ||
- task: CopyFiles@2 | ||
inputs: | ||
sourceFolder: $(Pipeline.Workspace)/NuGet Package | ||
targetFolder: $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet | ||
displayName: 'Copy build artifact for test run' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.