-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.boo
41 lines (31 loc) · 2.36 KB
/
build.boo
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
37
38
39
40
41
solution_file = "EPiAbstractions.sln"
configuration = "release"
target default, (init, compile, deploy, package):
pass
target init:
rmdir("build")
desc "Compiles the solution"
target compile:
msbuild(file: solution_file, configuration: configuration)
desc "Copies the binaries to the 'build' directory"
target deploy:
print "Copying to build dir"
with FileList("EPiAbstractions/bin/${configuration}/"):
.Include("*.{dll,xml}")
.ForEach def(file):
file.CopyToDirectory("build/${configuration}")
with FileList("EPiAbstractions.Fakes/bin/${configuration}/"):
.Include("*.{dll,xml}")
.ForEach def(file):
file.CopyToDirectory("build/${configuration}")
with FileList("EPiAbstractions.Opinionated/bin/${configuration}/"):
.Include("*.{dll,xml}")
.ForEach def(file):
file.CopyToDirectory("build/${configuration}")
with FileList("EPiAbstractions.FixtureSupport/bin/${configuration}/"):
.Include("*.{dll,xml}")
.ForEach def(file):
file.CopyToDirectory("build/${configuration}")
desc "Creates zip package"
target package:
zip("build/${configuration}", 'build/EPiAbstractions.zip')