forked from gopangea/BrakePedal
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
29 lines (23 loc) · 976 Bytes
/
Makefile
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
SOLUTIONFILE := src/BrakePedal.sln
TESTPROJECT := src/BrakePedal.Tests/BrakePedal.Tests.csproj
TESTDLL := src/BrakePedal.Tests/bin/Debug/BrakePedal.Tests.dll
COREPROJECT := src/BrakePedal/BrakePedal.csproj
HTTPPROJECT := src/BrakePedal.Http/BrakePedal.Http.csproj
REDISPROJECT := src/BrakePedal.Redis/BrakePedal.Redis.csproj
build:
mono tools/nuget/nuget.exe restore $(SOLUTIONFILE)
xbuild $(SOLUTIONFILE)
test:
mono tools/nuget/nuget.exe restore $(SOLUTIONFILE)
xbuild $(TESTPROJECT)
# Must use -noshadow switch for the runner to work in Mono as of 4.2.1
mono tools/xunit/xunit.console.exe $(TESTDLL) -noshadow
package-core:
xbuild $(COREPROJECT) /p:Configuration=Release
mono tools/nuget/nuget.exe Pack BrakePedal.nuspec
package-http:
xbuild $(HTTPPROJECT) /p:Configuration=Release
mono tools/nuget/nuget.exe Pack BrakePedal.Http.nuspec
package-redis:
xbuild $(REDISPROJECT) /p:Configuration=Release
mono tools/nuget/nuget.exe Pack BrakePedal.Redis.nuspec