Skip to content

Commit f69cdbc

Browse files
committed
skip build tests on CI and codecov runs them
1 parent 0a4bc82 commit f69cdbc

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,6 @@ artifacts/
213213
*.csproj.bak
214214

215215
#CodeCoverage
216-
**/CodeCoverage/*
216+
**/CodeCoverage/OpenCover*
217217
docs/
218218
/Tocsoft.DateTimeAbstractions.Coverage.xml

build.cmd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ ECHO Building nuget packages
1010
)
1111
if not "%errorlevel%"=="0" goto failure
1212

13-
dotnet test ./tests/Tocsoft.DateTimeAbstractions.Tests/Tocsoft.DateTimeAbstractions.Tests.csproj --no-build
14-
13+
if not "%CI%" == "True" (
14+
ECHO NOT on CI server running tests
15+
dotnet test ./tests/Tocsoft.DateTimeAbstractions.Tests/Tocsoft.DateTimeAbstractions.Tests.csproj -c Release --no-build
16+
)
17+
if not "%errorlevel%"=="0" goto failure
1518

1619
if not "%GitVersion_NuGetVersion%" == "" (
1720
dotnet pack ./src/Tocsoft.DateTimeAbstractions/ -c Release --output ../../artifacts --no-build /p:packageversion=%GitVersion_NuGetVersion%

0 commit comments

Comments
 (0)