-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTaskfile.yml
73 lines (64 loc) · 1.86 KB
/
Taskfile.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3'
vars:
CONFIGURATION: '{{default "Debug" .CONFIGURATION}}'
tasks:
default:
cmd: task --list
clean:
desc: Clean all object and binary files along with test output.
cmd: coreutils rm -rf .coverage src/*/TestResults src/*/bin/{{.CONFIGURATION}} src/*/obj/{{.CONFIGURATION}}
icon:
desc: Create the application icon.
vars:
SIZES: [16, 32, 48, 128, 256]
cmds:
- for:
var: SIZES
cmd: inkscape -w {{.ITEM}} -h {{.ITEM}} -o {{.ITEM}}.png TotalMixVC.svg
- magick {{range .SIZES}}{{.}}.png {{end}}-compress none src/TotalMixVC/Icons/TotalMixVC.ico
- coreutils rm *.png
restore:
desc: Restore the required tools and project dependencies.
cmds:
- dotnet tool restore
- dotnet restore
build:
desc: Build the application.
cmd: dotnet build --configuration {{.CONFIGURATION}} --no-restore
deps:
- restore
test:
desc: Run the unit tests.
cmd: >-
dotnet test
--configuration {{.CONFIGURATION}}
--logger xunit
--verbosity normal
--no-build
--collect:"XPlat Code Coverage"
deps:
- build
report:
desc: Produce a coverage report for unit tests.
cmd: >-
dotnet reportgenerator
-reports:src/**/coverage.cobertura.xml
-targetdir:.coverage
"-reporttypes:Cobertura;lcov;Html"
-filefilters:-*.g.cs
deps:
- test
publish:
desc: Publish the application ready for distribution.
cmd: >-
dotnet publish src/TotalMixVC
--configuration {{.CONFIGURATION}}
--runtime win-x64
--self-contained
deps:
- restore
distribute:
desc: Create an installer for distribution.
cmd: iscc /Oartifacts /DAppBuildConfiguration={{.CONFIGURATION}} TotalMixVC.iss
deps:
- publish