mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 06:52:55 +08:00
Build the projects before testing
This commit is contained in:
parent
0491fd581a
commit
ead2e38882
@ -10,7 +10,6 @@ var target = Argument("target", "Build");
|
|||||||
var framework = Argument("framework", "netcoreapp2.1");
|
var framework = Argument("framework", "netcoreapp2.1");
|
||||||
var configuration = Argument("configuration", "Release");
|
var configuration = Argument("configuration", "Release");
|
||||||
|
|
||||||
var osuDesktop = new FilePath("./osu.Desktop/osu.Desktop.csproj");
|
|
||||||
var osuSolution = new FilePath("./osu.sln");
|
var osuSolution = new FilePath("./osu.sln");
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
@ -19,13 +18,14 @@ var osuSolution = new FilePath("./osu.sln");
|
|||||||
|
|
||||||
Task("Compile")
|
Task("Compile")
|
||||||
.Does(() => {
|
.Does(() => {
|
||||||
DotNetCoreBuild(osuDesktop.FullPath, new DotNetCoreBuildSettings {
|
DotNetCoreBuild(osuSolution.FullPath, new DotNetCoreBuildSettings {
|
||||||
Framework = framework,
|
Framework = framework,
|
||||||
Configuration = configuration
|
Configuration = configuration
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Test")
|
Task("Test")
|
||||||
|
.IsDependentOn("Compile")
|
||||||
.Does(() => {
|
.Does(() => {
|
||||||
var testAssemblies = GetFiles("**/*.Tests/bin/**/*.Tests.dll");
|
var testAssemblies = GetFiles("**/*.Tests/bin/**/*.Tests.dll");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user