-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtaskfile.yaml
More file actions
62 lines (55 loc) · 2.04 KB
/
Copy pathtaskfile.yaml
File metadata and controls
62 lines (55 loc) · 2.04 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
version: "3"
includes:
integration-tests: "taskfiles/tests/integration.yaml"
lint: "taskfiles/lint.yaml"
presto-connector:
taskfile: "taskfiles/presto-connector/main.yaml"
dir: "presto-connector"
utils: "tools/yscope-dev-utils/exports/taskfiles/utils/utils.yaml"
velox-connector: "taskfiles/velox-connector/main.yaml"
vars:
DEFAULT_CLP_PLUGIN_BUILD_DIR: "{{.ROOT_DIR}}/build"
G_BUILD_DIR: "{{.CLP_PLUGIN_BUILD_DIR | default .DEFAULT_CLP_PLUGIN_BUILD_DIR}}"
# The Presto repository that the connectors fetch from, and the commit they are built
# against. Consumed by both connectors' builds and the tools/presto-deps/ scripts.
G_PRESTO_GIT_URL: "https://github.com/prestodb/presto.git"
G_PRESTO_GIT_TAG: "6e1942b72a9f32191dcd0ba49812f2ac96a25615"
tasks:
clean:
deps:
- "lint:clean"
- "velox-connector:clean"
cmd: "rm -rf '{{.G_BUILD_DIR}}'"
init:
internal: true
silent: true
run: "once"
cmds:
- "mkdir -p '{{.G_BUILD_DIR}}'"
package:
desc: >-
Build .deb/.rpm/.tar.gz packages. Set BUILD_PACKAGE_OUTPUT, BUILD_PACKAGE_VERSION, or
BUILD_PACKAGE_WITH_CA_CERTS to pass options.
vars:
BUILD_PACKAGE_OUTPUT: "{{.BUILD_PACKAGE_OUTPUT}}"
BUILD_PACKAGE_VERSION: "{{.BUILD_PACKAGE_VERSION}}"
BUILD_PACKAGE_WITH_CA_CERTS: "{{.BUILD_PACKAGE_WITH_CA_CERTS}}"
preconditions:
- sh: "docker buildx version >/dev/null 2>&1"
msg: "docker (with buildx) is required for local package builds."
cmds:
- >-
'{{.ROOT_DIR}}/tools/build-packages/build-packages.sh'
{{- if .BUILD_PACKAGE_OUTPUT}}
--output '{{.BUILD_PACKAGE_OUTPUT}}'
{{- end}}
{{- if .BUILD_PACKAGE_VERSION}}
--version '{{.BUILD_PACKAGE_VERSION}}'
{{- end}}
{{- if .BUILD_PACKAGE_WITH_CA_CERTS}}
--with-ca-certs
{{- end}}
validate-dep-sync:
desc: "Check that dependency pins match the pinned Presto commit and its Velox tree."
run: "once"
cmd: "'{{.ROOT_DIR}}/tools/presto-deps/validate-presto-dep-sync.py'"