Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/2.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Dec 9, 2022
2 parents c5b287b + ef8f1ff commit a778685
Show file tree
Hide file tree
Showing 27 changed files with 273 additions and 427 deletions.
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#---------------------------------#
# Build Image #
#---------------------------------#
image: Visual Studio 2019
image: Visual Studio 2022

#---------------------------------#
# Build Script #
Expand All @@ -11,7 +11,7 @@ install:
- ps: nuget update -self

build_script:
- ps: .\build.ps1 -Target AppVeyor
- ps: .\build.ps1 --target=CI

# Tests
test: off
Expand Down
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"cake.tool": {
"version": "1.3.0",
"commands": [
"dotnet-cake"
]
}
}
}
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ updates:
ignore:
- dependency-name: Cake.Core
versions:
- "> 1.0.0, < 2"
- "(,3.0)"
- dependency-name: Cake.Testing
versions:
- "> 1.0.0, < 2"
- "(,3.0)"
- dependency-name: Cake.Issues
versions:
- "> 1.0.0, < 2"
Expand Down
161 changes: 130 additions & 31 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,139 @@ pr:
- hotfix/*

jobs:
- job: Windows
# Build
- job: Build
pool:
vmImage: 'vs2017-win2016'
vmImage: 'windows-2022'
steps:
- powershell: |
$ENV:CAKE_SKIP_GITVERSION=([string]::IsNullOrEmpty($ENV:SYSTEM_PULLREQUEST_PULLREQUESTID) -eq $False).ToString()
.\build.ps1 -target Buildserver
exit $LASTEXITCODE
displayName: 'Cake Build'
- job: macOS
- powershell: ./build.ps1
displayName: 'Build'
- publish: $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
artifact: NuGet Package
displayName: 'Publish NuGet package as build artifact'
# Integration Tests Windows Server 2019 (.NET Core tool)
- job: Test_Windows_2019_DotNetCoreTool
displayName: Integration Tests Windows Server 2019 (.NET Core tool)
dependsOn: Build
pool:
vmImage: 'macOS-10.14'
vmImage: 'windows-2019'
steps:
# To manually select a Xamarin SDK version on the Hosted macOS agent, enable this script with the SDK version you want to target
# https://go.microsoft.com/fwlink/?linkid=871629
- bash: |
sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_18_1
displayName: 'Select Mono 5.18.1'
- bash: |
./build.sh --target Buildserver
displayName: 'Cake Build'
- job: Ubuntu
- 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'
- powershell: ./build.ps1
workingDirectory: ./tests/script-runner/
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/BuildArtifacts/TestResults/Integration
artifact: Integration Tests Windows Server 2019 (.NET Core tool)
displayName: 'Publish generated reports as build artifact'
# Integration Tests Windows Server 2022 (.NET Core tool)
- job: Test_Windows_2022_DotNetCoreTool
displayName: Integration Tests Windows Server 2022 (.NET Core tool)
dependsOn: Build
pool:
vmImage: 'ubuntu-16.04'
vmImage: 'windows-2022'
steps:
# Use Mono 6.6.0 until Cake.Recipe is compatible with Cake 0.37.0 which fixes this issue
- bash: |
sudo apt-get remove mono-complete mono-devel mono-gac mono-runtime-common monodoc-manual \
&& sudo apt-get autoremove \
&& echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial/snapshots/6.6.0.161 main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list \
&& sudo apt-get update \
&& sudo apt-get install -y --no-install-recommends mono-complete \
&& mono --version
displayName: 'Downgrade Mono to 6.6.0'
- bash: |
./build.sh --verbosity diagnostic
displayName: 'Cake Build'
- 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'
- powershell: ./build.ps1
workingDirectory: ./tests/script-runner/
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/BuildArtifacts/TestResults/Integration
artifact: Integration Tests Windows Server 2022 (.NET Core tool)
displayName: 'Publish generated reports as build artifact'
# Integration Tests macOS 11 (.NET Core tool)
- job: Test_macOS_11_DotNetCoreTool
displayName: Integration Tests macOS 11 (.NET Core tool)
dependsOn: Build
pool:
vmImage: 'macOS-11'
steps:
- 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'
- bash: ./build.sh
workingDirectory: ./tests/script-runner/
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/BuildArtifacts/TestResults/Integration
artifact: Integration Tests macOS 11 (.NET Core tool)
displayName: 'Publish generated reports as build artifact'
# Integration Tests macOS 12 (.NET Core tool)
- job: Test_macOS_12_DotNetCoreTool
displayName: Integration Tests macOS 12 (.NET Core tool)
dependsOn: Build
pool:
vmImage: 'macOS-12'
steps:
- 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'
- bash: ./build.sh
workingDirectory: ./tests/script-runner/
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/BuildArtifacts/TestResults/Integration
artifact: Integration Tests macOS 12 (.NET Core tool)
displayName: 'Publish generated reports as build artifact'
# Integration Tests Ubuntu 18.04 (.NET Core tool)
- job: Test_Ubuntu_18_04_DotNetCoreTool
displayName: Integration Tests Ubuntu 18.04 (.NET Core tool)
dependsOn: Build
pool:
vmImage: 'ubuntu-18.04'
steps:
- 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'
- bash: ./build.sh
workingDirectory: ./tests/script-runner/
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/BuildArtifacts/TestResults/Integration
artifact: Integration Tests Ubuntu 18.04 (.NET Core tool)
displayName: 'Publish generated reports as build artifact'
# Integration Tests Ubuntu 20.04 (.NET Core tool)
- job: Test_Ubuntu_20_04_DotNetCoreTool
displayName: Integration Tests Ubuntu 20.04 (.NET Core tool)
dependsOn: Build
pool:
vmImage: 'ubuntu-20.04'
steps:
- 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'
- bash: ./build.sh
workingDirectory: ./tests/script-runner/
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/BuildArtifacts/TestResults/Integration
artifact: Integration Tests Ubuntu 20.04 (.NET Core tool)
displayName: 'Publish generated reports as build artifact'
Loading

0 comments on commit a778685

Please sign in to comment.