-
-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up CI with Azure Pipelines (#210)
* Set up CI with Azure Pipelines * buildProjects * buildProjects * AppVeyor.csproj * task: MSBuild@1 * remove net35 * buildProjects * buildProjects: [ * - script: | * buildProjects * buildProjects: | '' * buildProjects: **/src/System.Linq.Dynamic.Core/System.Linq.Dynamic.Core.AppVeyor.csproj * Update tests * buildProjects: '**/src/System.Linq.Dynamic.Core/System.Linq.Dynamic.Core.csproj' * . * fix yml * fix tests * fix tests * version * 3 projects * myget * coverlet * Build System.Linq.Dynamic.Core.Tests also for net452
- Loading branch information
1 parent
7a6bf6c
commit a8e5143
Showing
103 changed files
with
23,031 additions
and
6,003 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<MsBuildAllProjects>$(MsBuildAllProjects);$(MsBuildThisFileFullPath)</MsBuildAllProjects> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<VersionPrefix>1.0.9.1</VersionPrefix> | ||
</PropertyGroup> | ||
|
||
<Choose> | ||
<!-- The environment variable `Prerelease` is set in the azure-pipelines.yml file. --> | ||
<When Condition=" '$(Prerelease)' != '' "> | ||
<PropertyGroup> | ||
<!-- Set the version to x.x.x.x-{Prerelease}-1{Build_BuildId} (this is same buildId as defined in the azure-pipelines.yml file). --> | ||
<VersionSuffix>$(Prerelease)-1$(BUILD_BUILDID)</VersionSuffix> | ||
</PropertyGroup> | ||
</When> | ||
</Choose> | ||
</Project> |
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
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,86 @@ | ||
pool: | ||
vmImage: 'vs2017-win2016' | ||
|
||
variables: | ||
Prerelease: 'ci' | ||
buildType: 'azure-pipelines-ci' | ||
buildId: "1$(Build.BuildId)" | ||
buildProjects: '**/src/**/+(System.Linq.Dynamic.Core|EntityFramework.DynamicLinq|Microsoft.EntityFrameworkCore.DynamicLinq).csproj' | ||
|
||
steps: | ||
# Print buildId | ||
- script: | | ||
echo "BuildId = $(buildId)" | ||
displayName: 'Print buildId' | ||
|
||
# Install SonarScanner | ||
- script: | | ||
dotnet tool install --global dotnet-sonarscanner | ||
displayName: Install SonarScanner | ||
|
||
# Begin SonarScanner | ||
# See also | ||
# - https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools, else you get this error: `Since you just installed the .NET Core SDK, you will need to reopen the Command Prompt window before running the tool you installed.` | ||
# - https://github.com/dotnet/cli/issues/8368 | ||
# - https://github.com/Microsoft/vsts-tasks/issues/8291 | ||
# | ||
- script: | | ||
%USERPROFILE%\.dotnet\tools\dotnet-sonarscanner begin /k:"system.linq.dynamic.core" /d:sonar.organization="stefh-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$(SONAR_TOKEN)" /v:"$(buildId)" /d:sonar.cs.opencover.reportsPaths="**\coverage.opencover.xml" | ||
displayName: Begin SonarScanner | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: Build Projects in Debug configuration | ||
inputs: | ||
command: 'build' | ||
arguments: /p:Configuration=Debug # https://github.com/MicrosoftDocs/vsts-docs/issues/1976 | ||
projects: $(buildProjects) | ||
|
||
|
||
# Build tests and run tests for net452 and netcoreapp2.1 (with coverage) | ||
- script: | | ||
dotnet test ./test/System.Linq.Dynamic.Core.Tests/System.Linq.Dynamic.Core.Tests.csproj --configuration Debug --framework net452 | ||
dotnet test ./test/System.Linq.Dynamic.Core.Tests/System.Linq.Dynamic.Core.Tests.csproj --configuration Debug --framework netcoreapp2.1 --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover | ||
displayName: 'Build tests and run tests for net452 and netcoreapp2.1 (with coverage)' | ||
|
||
# End SonarScanner | ||
- script: | | ||
%USERPROFILE%\.dotnet\tools\dotnet-sonarscanner end /d:sonar.login="$(SONAR_TOKEN)" | ||
displayName: End SonarScanner | ||
|
||
- task: PublishTestResults@2 | ||
inputs: | ||
testRunner: VSTest | ||
testResultsFiles: '**/*.trx' | ||
|
||
# Based on https://whereslou.com/2018/09/versioning-and-publishing-nuget-packages-automatically-using-azure-devops-pipelines/ | ||
- task: DotNetCoreCLI@2 | ||
displayName: Build Projects in Release configuration | ||
inputs: | ||
command: 'build' | ||
arguments: /p:Configuration=Release # https://github.com/MicrosoftDocs/vsts-docs/issues/1976 | ||
projects: $(buildProjects) | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: Pack | ||
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) # Do not run for PullRequests | ||
inputs: | ||
command: pack | ||
configuration: 'Release' | ||
packagesToPack: $(buildProjects) | ||
nobuild: true | ||
packDirectory: '$(Build.ArtifactStagingDirectory)/packages' | ||
verbosityPack: 'normal' | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: Publish Artifacts | ||
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) # Do not run for PullRequests | ||
inputs: | ||
PathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: Push to MyGet | ||
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) # Do not run for PullRequests | ||
inputs: | ||
command: custom | ||
custom: nuget | ||
arguments: push $(Build.ArtifactStagingDirectory)\packages\*.nupkg --source https://www.myget.org/F/system-linq-dynamic-core/api/v3/index.json --no-service-endpoint --api-key $(MyGetKey) |
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
report/Microsoft.EntityFrameworkCore.DynamicLinq_DynamicFunctions.htm
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.