Skip to content

Commit d64540e

Browse files
author
Cédric Belin
committed
Update the build system [skip ci]
1 parent 710bb64 commit d64540e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.cake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var version = Context.Configuration.GetValue("package_version");
77

88
Task("build")
99
.Description("Builds the project.")
10-
.Does(() => DotNetBuild("src/lcov.csproj", new() { Configuration = release ? "Release" : "Debug" }));
10+
.Does(() => DotNetBuild("src", new() { Configuration = release ? "Release" : "Debug" }));
1111

1212
Task("clean")
1313
.Description("Deletes all generated files.")
@@ -17,7 +17,7 @@ Task("clean")
1717

1818
Task("format")
1919
.Description("Formats the source code.")
20-
.Does(() => DotNetFormat("lcov.slnx"));
20+
.DoesForEach(["src", "test"], project => DotNetFormat(project));
2121

2222
Task("publish")
2323
.Description("Publishes the package.")
@@ -27,7 +27,7 @@ Task("publish")
2727

2828
Task("test")
2929
.Description("Runs the test suite.")
30-
.Does(() => DotNetTest("test/lcov.tests.csproj", new() { Settings = ".runsettings" }));
30+
.Does(() => DotNetTest("test", new() { Settings = ".runsettings" }));
3131

3232
Task("version")
3333
.Description("Updates the version number in the sources.")

0 commit comments

Comments
 (0)