-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathTaskfile.yml
More file actions
64 lines (57 loc) · 1.42 KB
/
Taskfile.yml
File metadata and controls
64 lines (57 loc) · 1.42 KB
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
# This file controls how brig is build.
# It is a nicer to use alternative to Makefiles.
# Please read the documentation over at:
#
# https://taskfile.dev
#
# The actual commands that do the work are written in bash.
# See the scripts/ folder for them.
#
# When changing the structure of the repository, please remember
# to update the "sources" list in this file if dependencies
# of a build target were added, removed or changed.
version: '3'
tasks:
default:
deps: [build]
elm:
desc: "Compile elm sources to Javascript"
cmds:
- cd gateway/elm && elm make src/Main.elm --output ../static/js/app.js
sources:
- ./gateway/elm/**/*.elm
generates:
- ./gateway/static/js/app.js
method: checksum
summary: |
Build the elm frontend.
generate:
desc: "Generate build dependencies"
cmds:
- scripts/generate.sh
sources:
- scripts/generate.sh
- ./**/*.capnp
- ./gateway/static/**/**/**/**
build:
deps: [generate]
desc: "Build the brig binary"
cmds:
- ./scripts/build.sh
sources:
- ./scripts/build.sh
- go.mod
- ./*.go
- ./**/*.go
test:
desc: "Run integration & unit tests"
cmds:
- bash scripts/run-tests.sh
lint:
desc: "Run static linters on the code"
cmds:
- bash scripts/run-linter.sh
sloc:
desc: "Count the lines of code"
cmds:
- bash scripts/count-lines-of-code.sh