Skip to content

Commit dfea52e

Browse files
author
Morten Larsen
authored
Merge pull request #1 from Baune8D/pull-test
Upload to codecov through AppVeyor to support pull requests
2 parents 979830e + 9eb0f05 commit dfea52e

File tree

8 files changed

+14
-34
lines changed

8 files changed

+14
-34
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Coverage Report folder
1+
# Coverage Report
22
coverage
3+
coverage.xml
34

45
## Ignore Visual Studio temporary files, build results, and
56
## files generated by popular Visual Studio add-ons.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ExpressionCache
2-
[![Build status](https://ci.appveyor.com/api/projects/status/qmxfk6hhua5ev2cn?svg=true)](https://ci.appveyor.com/project/Baune8D/expressioncache)
2+
[![Build status](https://ci.appveyor.com/api/projects/status/0abskdimkpe1m558?svg=true)](https://ci.appveyor.com/project/Baune8D/expressioncache)
33
[![codecov](https://codecov.io/gh/Baune8D/expressioncache/branch/master/graph/badge.svg)](https://codecov.io/gh/Baune8D/expressioncache)
44

55
NuGet feed: [https://www.myget.org/F/baunegaard/api/v3/index.json](https://www.myget.org/F/baunegaard/api/v3/index.json)

appveyor.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,26 @@ branches:
88
image: Visual Studio 2017
99

1010
environment:
11-
CODECOV_TOKEN:
12-
secure: I7bieXWtobeo2d40BMek/GSjy5Z0Wihr1dZ+G8qujzKpGyzxxaR7zzPrWteRfkSK
1311
MYGET_API_KEY:
1412
secure: 78qy8e6pKfJlQV7RAG5tJOWegzXpjASkUs3aFdVBoPYA5gi6+mWdjbuAmNa5OQPe
1513

14+
cache:
15+
- tools -> tools\packages.config
16+
1617
assembly_info:
1718
patch: false
1819

1920
configuration:
2021
- Release
2122

22-
before_build:
23-
- cmd: git remote set-url origin https://github.com/Baune8D/expressioncache.git
24-
2523
build_script:
2624
- ps: .\build.ps1
2725

26+
after_build:
27+
- "SET PATH=C:\\Python36;C:\\Python36\\Scripts;%PATH%"
28+
- pip install codecov
29+
- codecov -f "coverage.xml" -X gcov
30+
2831
test: off
2932

3033
deploy: off

build.cake

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
#tool "nuget:?package=GitVersion.CommandLine&prerelease"
22
#tool "nuget:?package=OpenCover"
3-
#tool "nuget:?package=Codecov"
43
#tool "nuget:?package=ReportGenerator"
54

6-
#addin "nuget:?package=Cake.Codecov"
7-
85
//////////////////////////////////////////////////////////////////////
96
// ARGUMENTS
107
//////////////////////////////////////////////////////////////////////
@@ -17,7 +14,7 @@ var configuration = Argument("configuration", "Release");
1714
//////////////////////////////////////////////////////////////////////
1815

1916
var solutionFile = "./ExpressionCache.sln";
20-
var coverageResult = "./TestResult.xml";
17+
var coverageResult = "./coverage.xml";
2118

2219
string[] coverageFilters =
2320
{
@@ -109,11 +106,6 @@ Task("Test")
109106
},
110107
coverageResult, settings);
111108
}
112-
113-
if (AppVeyor.IsRunningOnAppVeyor)
114-
{
115-
Codecov(coverageResult, EnvironmentVariable("CODECOV_TOKEN"));
116-
}
117109
});
118110

119111
Task("Coverage-Report")

test/ExpressionCache.Core.Tests/ExpressionCacheBaseTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77

88
namespace ExpressionCache.Core.Tests
99
{
10-
[Collection("HelperCollection")]
11-
public class ExpressionCacheBaseTests
10+
public class ExpressionCacheBaseTests : IClassFixture<TestFunctionsFixture>
1211
{
1312
private readonly TestFunctionsFixture _testFunctions;
1413

test/ExpressionCache.Core.Tests/ExpressionResultTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
namespace ExpressionCache.Core.Tests
88
{
9-
[Collection("HelperCollection")]
10-
public class ExpressionResultTests
9+
public class ExpressionResultTests : IClassFixture<TestFunctionsFixture>
1110
{
1211
private readonly TestFunctionsFixture _testFunctions;
1312

test/ExpressionCache.Core.Tests/TestHelpers/HelperCollection.cs

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

test/ExpressionCache.Distributed.Tests/DistributedCacheServiceTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public class DistributedCacheServiceTests : IClassFixture<TestFunctionsFixture>
1818
private readonly MemoryDistributedCache _memoryDistributedCache;
1919
private readonly IDistributedCacheService _distributedCacheService;
2020

21-
private const string Key = "TestKey";
2221
private const string Value = "TestValue";
2322

2423
public DistributedCacheServiceTests(TestFunctionsFixture testFunctions)

0 commit comments

Comments
 (0)