Skip to content

Commit f560380

Browse files
committed
In psake.ps1, build and test in one step.
1 parent da8e144 commit f560380

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

psake.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ Task Build {
103103
}
104104
}
105105

106-
Task Test -depends Build {
106+
Task Test {
107107
@(
108108
'NHibernate.TestDatabaseSetup',
109109
'NHibernate.Test',
110110
'NHibernate.Test.VisualBasic'
111111
) | ForEach-Object {
112-
$assembly = [IO.Path]::Combine("src", $_, "bin", "Release", "netcoreapp2.0", "$_.dll")
112+
$project = [IO.Path]::Combine("src", $_)
113113
Exec {
114-
dotnet $assembly --labels=before --nocolor "--result=$_-TestResult.xml"
114+
dotnet run -f netcoreapp2.0 -c Release -p $project -- --labels=before --nocolor "--result=$_-TestResult.xml"
115115
}
116116
}
117117
}

0 commit comments

Comments
 (0)