Skip to content

Commit 655bc7b

Browse files
committed
Remove Coveralls
1 parent 60ddd19 commit 655bc7b

File tree

9 files changed

+3
-513
lines changed

9 files changed

+3
-513
lines changed

doc/readme.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -427,25 +427,7 @@ Using this feature requires a few setup steps:
427427
___
428428
### 2.5. Coveralls
429429

430-
The coverage results can be uploaded automatically to https://coveralls.io/
431-
432-
`dotnet-releaser` will detect automatically if there is an existing owner/repository by checking the end-point `https://coveralls.io/{owner}/{repository}.json`
433-
and will skip the upload to coveralls if it is not detected.
434-
435-
In order for the upload to coveralls to work, the `--github-token` passed to must be coming from `${{secrets.GITHUB_TOKEN}}`.
436-
437-
438-
| `[coveralls]` | Type | Description |
439-
|----------------------------|-----------|----------------------------|
440-
| `publish` | `bool` | Specifies whether or not to publish to coveralls. Default is `true`.
441-
| `url` | `string` | The coveralls URL endpoint. Default is `https://coveralls.io`
442-
443-
Example to disable the use of source link:
444-
445-
```toml
446-
[coveralls]
447-
publish = false
448-
```
430+
As the https://coveralls.io/ service is no longer working, its support has been removed in dotnet-releaser 0.14.0+ and later.
449431

450432
___
451433
### 2.6. GitHub

src/DotNetReleaser.Tests/CoverageTests.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Text.Json;
66
using System.Text.Json.Serialization;
77
using DotNetReleaser.Coverage;
8-
using DotNetReleaser.Coverage.Coveralls;
98
using DotNetReleaser.Helpers;
109
using NUnit.Framework;
1110

@@ -56,21 +55,4 @@ public void TestParser()
5655
// }
5756
//}
5857
}
59-
60-
[Test]
61-
public void TestConverterToCoveralls()
62-
{
63-
using var reader = new FileStream(Path.Combine(AppContext.BaseDirectory, "coverage.json"), FileMode.Open, FileAccess.Read);
64-
var assemblyCoverages = CoverletJsonParser.Parse(reader);
65-
66-
var logger = new MockSimpleLogger();
67-
var result = CoverallsHelper.ConvertToCoverallsSourceFiles(logger, assemblyCoverages, @"C:\code\Tomlyn\");
68-
69-
70-
//var stream = new MemoryStream();
71-
//JsonSerializer.Serialize(stream, result, new JsonSerializerOptions() { WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull});
72-
//stream.Position = 0;
73-
//var utf8 = Encoding.UTF8.GetString(stream.ToArray());
74-
//Console.WriteLine(utf8);
75-
}
7658
}

src/dotnet-releaser/Configuration/CoverallsConfiguration.cs

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

src/dotnet-releaser/Configuration/ReleaserConfiguration.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public ReleaserConfiguration()
1919
ArtifactsFolder = "artifacts-dotnet-releaser";
2020
Packs = new List<PackagingConfiguration>();
2121
Coverage = new CoverageConfiguration();
22-
Coveralls = new CoverallsConfiguration();
2322
Test = new TestConfiguration();
2423
MSBuild = new MSBuildConfiguration();
2524
Changelog = new ChangelogConfiguration();
@@ -43,8 +42,6 @@ public ReleaserConfiguration()
4342

4443
public CoverageConfiguration Coverage { get; }
4544

46-
public CoverallsConfiguration Coveralls { get; }
47-
4845
public TestConfiguration Test { get; }
4946

5047
public MSBuildConfiguration MSBuild { get; }

src/dotnet-releaser/Coverage/Coveralls/CoverallsData.cs

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

0 commit comments

Comments
 (0)