Skip to content

Commit 28a1969

Browse files
Disable AppVeyor integration
1 parent cca0093 commit 28a1969

File tree

15 files changed

+6
-137
lines changed

15 files changed

+6
-137
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ You will avoid common pitfalls, control the accuracy of your measurements, and i
289289
| Azure Pipelines | Windows | [![Azure Windows](https://dev.azure.com/dotnet/BenchmarkDotNet/_apis/build/status/BenchmarkDotNet%20-%20Windows)](https://dev.azure.com/dotnet/BenchmarkDotNet/_build/latest?definitionId=55) |
290290
| Azure Pipelines | Ubuntu | [![Azure Ubuntu](https://dev.azure.com/dotnet/BenchmarkDotNet/_apis/build/status/BenchmarkDotNet%20-%20Ubuntu)](https://dev.azure.com/dotnet/BenchmarkDotNet/_build/latest?definitionId=56) |
291291
| Azure Pipelines | macOS | [![Azure macOS](https://dev.azure.com/dotnet/BenchmarkDotNet/_apis/build/status/BenchmarkDotNet%20-%20macOS)](https://dev.azure.com/dotnet/BenchmarkDotNet/_build/latest?definitionId=57) |
292-
| AppVeyor | Windows | [![AppVeyor/Windows](https://img.shields.io/appveyor/ci/dotnetfoundation/benchmarkdotnet/master.svg)](https://ci.appveyor.com/project/dotnetfoundation/benchmarkdotnet/branch/master) |
293292
| GitHub Actions | * | [![GitHub Actions](https://github.com/dotnet/BenchmarkDotNet/actions/workflows/build.yaml/badge.svg)](https://github.com/dotnet/BenchmarkDotNet/actions/workflows/build.yaml) |
294293

295294
## Contributions are welcome!

appveyor.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

build/BenchmarkDotNet.Build/BuildContext.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using BenchmarkDotNet.Build.Runners;
88
using Cake.Common;
99
using Cake.Common.Build;
10-
using Cake.Common.Build.AppVeyor;
1110
using Cake.Common.Diagnostics;
1211
using Cake.Common.IO;
1312
using Cake.Common.Tools.DotNet;
@@ -38,16 +37,7 @@ public class BuildContext : FrostingContext
3837
public DotNetMSBuildSettings MsBuildSettingsBuild { get; }
3938
public DotNetMSBuildSettings MsBuildSettingsPack { get; }
4039

41-
private IAppVeyorProvider AppVeyor => this.BuildSystem().AppVeyor;
42-
public bool IsRunningOnAppVeyor => AppVeyor.IsRunningOnAppVeyor;
43-
public bool IsOnAppVeyorAndNotPr => IsRunningOnAppVeyor && !AppVeyor.Environment.PullRequest.IsPullRequest;
44-
45-
public bool IsOnAppVeyorAndBdnNightlyCiCd => IsOnAppVeyorAndNotPr &&
46-
AppVeyor.Environment.Repository.Branch == "master" &&
47-
this.IsRunningOnWindows();
48-
49-
public bool IsLocalBuild => this.BuildSystem().IsLocalBuild;
50-
public bool IsCiBuild => !this.BuildSystem().IsLocalBuild;
40+
private bool IsCiBuild => !this.BuildSystem().IsLocalBuild;
5141

5242
public VersionHistory VersionHistory { get; }
5343

build/BenchmarkDotNet.Build/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public class UnitTestsTask : FrostingTask<BuildContext>
4343
[IsDependentOn(typeof(BuildTask))]
4444
public class InTestsFullTask : FrostingTask<BuildContext>
4545
{
46-
public override bool ShouldRun(BuildContext context) =>
47-
context.IsRunningOnWindows() && !context.IsRunningOnAppVeyor;
46+
public override bool ShouldRun(BuildContext context) => context.IsRunningOnWindows();
4847

4948
public override void Run(BuildContext context) => context.UnitTestRunner.RunInTests("net462");
5049
}

build/common.props

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@
3838

3939
<PropertyGroup Condition=" '$(VersionPrefix)' == '' ">
4040
<VersionPrefix>0.13.5</VersionPrefix>
41-
<VersionPrefix Condition=" '$(APPVEYOR_BUILD_NUMBER)' != '' ">$(VersionPrefix).$(APPVEYOR_BUILD_NUMBER)</VersionPrefix>
4241
</PropertyGroup>
4342

44-
<PropertyGroup Condition=" '$(VersionSuffix)' == '' AND '$(APPVEYOR_BUILD_NUMBER)' == '' ">
43+
<PropertyGroup Condition=" '$(VersionSuffix)' == '' ">
4544
<VersionSuffix>develop</VersionSuffix>
46-
<VersionSuffix Condition=" '$(APPVEYOR_BUILD_NUMBER)' == '' AND '$(BDN_CI_BUILD)' != '' ">ci</VersionSuffix>
45+
<VersionSuffix Condition=" '$(BDN_CI_BUILD)' != '' ">ci</VersionSuffix>
4746
</PropertyGroup>
4847

4948
<PropertyGroup>

build/uploadtests.ps1

Lines changed: 0 additions & 37 deletions
This file was deleted.

docs/_changelog/header/v0.13.0.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -257,16 +257,6 @@ IConfig after = ManualConfig.CreateMinimumViable();
257257

258258
In [#1659](https://github.com/dotnet/BenchmarkDotNet/pull/1659/) [@workgroupengineering](https://github.com/workgroupengineering) added the possibility to indicate the source of the tested nuget package and whether it is a pre-release version.
259259

260-
```cs
261-
IConfig config = DefaultConfig.Instance
262-
.AddJob(Job.Default
263-
.WithNuGet("BenchmarkDotNet", "0.13.0", new Uri("https://api.nuget.org/v3/index.json"))
264-
.WithId("0.13.0"))
265-
.AddJob(Job.Default
266-
.WithNuGet("BenchmarkDotNet", "0.12.1.1534", new Uri("https://ci.appveyor.com/nuget/benchmarkdotnet"), prerelease: true)
267-
.WithId("0.12.1.1534"));
268-
```
269-
270260
### Deterministic benchmark builds
271261

272262
BenchmarkDotNet is now always enforcing Deterministic builds ([#1489](https://github.com/dotnet/BenchmarkDotNet/pull/1489)) and Optimizations enabled ([#1494](https://github.com/dotnet/BenchmarkDotNet/pull/1494)) which is a must-have if you are using custom build configurations. MSBuild enforces optimizations **only** for configurations that are named `Release` (the comparison is case-insensitive).

tests/BenchmarkDotNet.IntegrationTests/BenchmarkSwitcherTest.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,6 @@ public void WhenJobIsDefinedViaAttributeAndArgumentsDontContainJobArgumentOnlySi
289289
[Fact]
290290
public void JobNotDefinedButStillBenchmarkIsExecuted()
291291
{
292-
if (ContinuousIntegration.IsAppVeyorOnWindows())
293-
return; // timeouts
294-
295292
var types = new[] { typeof(JustBenchmark) };
296293
var switcher = new BenchmarkSwitcher(types);
297294
MockExporter mockExporter = new MockExporter();

tests/BenchmarkDotNet.IntegrationTests/ContinuousIntegration.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,9 @@ internal static class ContinuousIntegration
77
{
88
private static bool IsGitHubActions() => !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("GITHUB_ACTION"));
99

10-
private static bool IsAppVeyor() => !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("APPVEYOR"));
11-
1210
internal static bool IsGitHubActionsOnWindows()
1311
=> RuntimeInformation.IsWindows() && IsGitHubActions();
1412

15-
internal static bool IsAppVeyorOnWindows()
16-
=> RuntimeInformation.IsWindows() && IsAppVeyor();
17-
18-
internal static bool IsLocalRun() => !IsGitHubActions() && !IsAppVeyor();
13+
internal static bool IsLocalRun() => !IsGitHubActions();
1914
}
2015
}

tests/BenchmarkDotNet.IntegrationTests/CustomBuildConfigurationTests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ public CustomBuildConfigurationTests(ITestOutputHelper output) : base(output)
1818
[Fact]
1919
public void UserCanSpecifyCustomBuildConfiguration()
2020
{
21-
if (ContinuousIntegration.IsAppVeyorOnWindows())
22-
return; // timeouts
23-
2421
var jobWithCustomConfiguration = Job.Dry.WithCustomBuildConfiguration("CUSTOM");
2522

2623
var config = CreateSimpleConfig(job: jobWithCustomConfiguration);

0 commit comments

Comments
 (0)