This repository has been archived by the owner on May 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.boo
57 lines (44 loc) · 1.69 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
configuration = "release"
target default, (init, compile, test, deploy, package):
pass
target ci, (init, compile, deploy, package):
pass
target init:
rmdir("build")
target clean:
solution_file = "src/Slipstream.sln"
msbuild(file: solution_file, configuration: "debug", targets: ("clean",))
msbuild(file: solution_file, configuration: "release", targets: ("clean",))
rmdir("build")
desc "Compiles the solution"
target compile:
solution_file = "src/Slipstream.sln"
msbuild(file: solution_file, configuration: configuration)
desc "Executes tests"
target test:
nunit(assembly: "src/Sandwych.Common.Test/bin/${configuration}/Sandwych.Common.Test.dll")
nunit(assembly: "src/SlipStream.Test/bin/${configuration}/SlipStream.Test.dll")
nunit(assembly: "src/SlipStream.Client.Test/bin/${configuration}/SlipStream.Client.Test.dll")
desc "Copies the binaries to the 'build' directory"
target deploy, (compile):
#print "Removing 'build' directory"
# rmdir('build')
print "Copying to build dir"
print "Copying Slipstream Server..."
with FileList("src/SlipStream.DevServer/bin"):
.Include("*.{dll,exe}")
.ForEach def(file):
file.CopyToDirectory("build/s2/bin")
print "Copying ZeroMQ's DLL..."
with FileList("lib/zmq"):
.Include("libzmq.dll")
.ForEach def(file):
file.CopyToDirectory("build/s2/bin")
print "Copying internal modules..."
with FileList("src/SlipStream.DevServer/Modules/"):
.Include("**")
.ForEach def(file):
file.CopyToDirectory("build/s2/Modules")
desc "Creates zip package"
target package, (deploy):
zip("build/s2", 'build/s2-platform.zip')