-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (37 loc) · 1.31 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.ONESHELL:
.PHONY: bootstrap setup update run clean build test cibuild citest
.DEFAULT_GOAL := help
help:
echo "Primary goals are build, run, test, test-acceptance. 'make run' to execute"
clean:
dotnet clean
rm -rf ./test-results
# This is not required in coder - already in image
bootstrap:
- dotnet tool install --global SpecFlow.Plus.LivingDoc.CLI
dotnet restore
build:
dotnet build
test: build
dotnet test --filter "TestCategory!=acceptance"
test-acceptance: build
dotnet test --filter "TestCategory=acceptance"
- cp -r LevelUpGame.Tests/resources ./test-results
# May need export for M1 Mac Architecture
- export DOTNET_ROOT=$(which dotnet) & livingdoc test-assembly LevelUpGame.Tests/bin/Debug/net6.0/LevelUpGame.Tests.dll -t LevelUpGame.Tests/bin/Debug/net6.0/TestExecution.json -o test-results/TestOutput.html
test-all: test test-acceptance
run:
dotnet run --project LevelUpGame
###
## Needed for build on self-hosted runners. Do not run these locally
###
cibuild:
export DOTNET_CLI_HOME=/home/ec2-user/.dotnet/
dotnet restore
dotnet build --no-restore
citest:
export DOTNET_CLI_HOME=/home/ec2-user/.dotnet/
dotnet test --filter "TestCategory!=acceptance"
citest-acceptance:
export DOTNET_CLI_HOME=/home/ec2-user/.dotnet/
dotnet test --filter "TestCategory=acceptance" --no-build --verbosity normal