This repository has been archived by the owner on May 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildServer
executable file
·48 lines (39 loc) · 1.54 KB
/
buildServer
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
#! /bin/bash
# Work in progress. Will be done with FAKE and Paket.
function build-local()
{
nuget restore HealthKitServer.sln
xbuild /property:Configuration=Release HealthKitServer.Host/HealthKitServer.Host.csproj
xbuild /property:Configuration=Release TestHealthKitServer.HealthKitServer/TestHealthKitServer.HealthKitServer.csproj
xbuild /property:Configuration=Release TestHealthKitServer.Server/TestHealthKitServer.Server.csproj
}
function build-docker()
{
sudo docker build -t healthkitserver .
}
function run-local()
{
build-local
mono HealthKitServer.Host/bin/Release/HealthKitServer.Host.exe
}
function run-docker()
{
build-docker
sudo docker run -p 5000:5000 -d healthkitserver
}
function testdata-local(){
mono TestHealthRecordServer.Console/bin/Debug/TestHealthRecordServer.Console.exe $1
}
function unit-local(){
mono packages/NUnit.Runners.2.6.4/tools/nunit-console.exe TestHealthKitServer.HealthKitServer/bin/Release/Test*.dll -include=unit
mono packages/NUnit.Runners.2.6.4/tools/nunit-console.exe TestHealthKitServer.Server/bin/Release/Test*.dll -include=unit
}
function integration-local(){
mono packages/NUnit.Runners.2.6.4/tools/nunit-console.exe TestHealthKitServer.HealthKitServer/bin/Release/Test*.dll -include=integration
mono packages/NUnit.Runners.2.6.4/tools/nunit-console.exe TestHealthKitServer.Server/bin/Release/Test*.dll -include=integration
}
function testdata-docker(){
sudo docker build -t healthkitservertestdataclient TestHealthRecordServer.Console/
sudo docker run -it -e URL=$1 healthkitservertestdataclient
}
"$@"