-
Notifications
You must be signed in to change notification settings - Fork 1
/
Module.Taskfile.yaml
46 lines (34 loc) · 1.14 KB
/
Module.Taskfile.yaml
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
# https://taskfile.dev
#Called by the vnbuild system to produce builds for my website
#https://www.vaughnnugent.com/resources/software
#This taskfile performs the build operations for a module, it handles
#git code updates, msbuild on solutions, and sleet NuGet feed pushes.
#this file must be in the same directory as the solution file
version: '3'
tasks:
#called by build pipeline to sync repo
update:
cmds:
- cmd: git reset --hard
- cmd: git remote update
- cmd: git pull origin {{ .BRANCH_NAME }} --verify-signatures
test:
desc: 'Builds and runs noscrypt unit tests for vnbuild CI systems'
cmds:
#run CI tests with utils enabled
- cmd: task ci-test
- cmd: wsl task ci-test
#called by build pipeline to build module
build:
cmds:
- cmd: echo "building module {{ .MODULE_NAME }}"
publish:
cmds:
#git archive in the module directory
- cmd: git archive --format {{ .ARCHIVE_FILE_FORMAT }} --output {{ .ARCHIVE_FILE_NAME }} HEAD
#called by build pipeline to clean module
clean:
cmds:
#clean solution
- cmd: powershell rm -Recurse out/
ignore_error: true