forked from dotliquid/dotliquid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.ps1
More file actions
36 lines (27 loc) · 1.03 KB
/
Copy pathdefault.ps1
File metadata and controls
36 lines (27 loc) · 1.03 KB
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
35
36
# Thanks to AutoMapper for the inspiration for this build file.
$global:config = 'Release'
properties {
$base_dir = resolve-path .
$source_dir = "$base_dir\src"
$build_dir = "$base_dir\build"
$package_dir = "$base_dir\package"
}
task Default -depends Clean, Compile, Test, Package
task Clean {
delete_directory "$package_dir"
}
task Compile -depends Clean {
Invoke-Psake "$build_dir\compile.ps1" -framework 3.5 -parameters @{"solution_file"="DotLiquid-2008.sln"}
Invoke-Psake "$build_dir\compile.ps1" -framework 4.0 -parameters @{"solution_file"="DotLiquid.sln"}
}
task Test -depends Compile {
Invoke-Psake "$build_dir\test.ps1" -framework 3.5 -parameters @{"bin_folder"="bin/$config-3.5"}
Invoke-Psake "$build_dir\test.ps1" -framework 4.0 -parameters @{"bin_folder"="bin/$config"}
}
task Package {
Invoke-Psake "$build_dir\package.ps1" -framework 4.0
}
# Helper functions
function global:delete_directory($directory_name) {
rd $directory_name -recurse -force -ErrorAction SilentlyContinue | out-null
}