Repository navigation
Expand file tree
/
Copy pathTaskfile.yml
More file actions
77 lines (66 loc) · 2.14 KB
/
Copy pathTaskfile.yml
File metadata and controls
77 lines (66 loc) · 2.14 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
65
66
67
68
69
70
71
72
73
74
75
76
77
# This is mostly just a convenience to start common tasks from the root directory
version: "3"
silent: true
dotenv: [".env"]
includes:
config: ./taskfile/config.yml
components: ./taskfile/components.yml
contracts: ./taskfile/contracts.yml
backend: ./taskfile/backend.yml
test: ./taskfile/test.yml
oauth: ./taskfile/oauth.yml
deploy: ./taskfile/deploy.yml
tasks:
default:
cmds:
- task --list-all
clean:
desc: "Clean all builds"
cmds:
- echo "Cleaning builds in {{.PATH_BUILDS}}"
- rm -rf "{{.PATH_BUILDS}}"
- echo "Cleaning deployments in {{.PATH_DEPLOYMENTS}}"
- rm -rf "{{.PATH_DEPLOYMENTS}}"
lint:
desc: "Run code formatting and linting checks"
cmds:
- cargo fmt --all -- --check
- cargo fix --allow-dirty --allow-staged
- cargo clippy --all-targets -- -D warnings
build-helper:
cmds:
- cargo build --release --package task-helper
docker-pull:
desc: "Pull required Docker images"
cmds:
- |
{{.DOCKER_SUDO}} docker pull {{.DOCKER_IMAGE_WAVS}}
- |
{{.DOCKER_SUDO}} docker pull {{.DOCKER_IMAGE_WAVS_CW_MIDDLEWARE}}
- |
{{.DOCKER_SUDO}} docker pull {{.DOCKER_IMAGE_COSMWASM_OPTIMIZER}}
- |
{{.DOCKER_SUDO}} docker pull {{.DOCKER_IMAGE_JAEGER}}
- |
{{.DOCKER_SUDO}} docker pull {{.DOCKER_IMAGE_PROMETHEUS}}
- |
{{.DOCKER_SUDO}} docker pull {{.DOCKER_IMAGE_IPFS}}
- |
{{.DOCKER_SUDO}} docker pull {{.DOCKER_IMAGE_GREENMAIL}}
build-all:
desc: "Build everything that needs building"
cmds:
- task components:build-all
- task contracts:build-all
- task contracts:schema-all
###################################################################
######################## HELPER ###################################
###################################################################
helper-exec:
cmds:
- |
if [ "{{.TASK_HELPER_DEV_MODE}}" = "true" ]; then
cd {{.PATH_REPO_ROOT}}/packages/task-helper && cargo run -- {{.CLI_ARGS}}
else
{{.PATH_REPO_ROOT}}/target/release/task-helper {{.CLI_ARGS}}
fi