-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.ps1
More file actions
34 lines (23 loc) · 734 Bytes
/
default.ps1
File metadata and controls
34 lines (23 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
include build-utils.ps1
properties {
$dir = "/tools/mongodb"
$nunitDir = "D:\Work\Libs\nunit\net-2.0"
}
task default -depends all
task all -depends compile, test {
}
task compile {
ms 'LittleProblem/LittleProblem.sln'
}
task test -depends compile {
& "$nunitDir\nunit-console.exe" 'LittleProblem/LittleProblem.CommonTest/bin/Debug/LittleProblem.CommonTest.dll' /nologo
& "$nunitDir\nunit-console.exe" 'LittleProblem/LittleProblem.DataTest/bin/Debug/LittleProblem.DataTest.dll' /nologo
}
task mongo-start {
if(ps | Where {$_.Name -eq "mongod"}) {} else {
& "$dir/bin/mongod.exe" --dbpath "$dir/data"
}
}
task mongo-shell {
& "$dir/bin/mongo.exe"
}