forked from Constellation-Labs/tessellation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
55 lines (41 loc) · 1.48 KB
/
Copy pathjustfile
File metadata and controls
55 lines (41 loc) · 1.48 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
# Tessellation Justfile
# Shows help
default:
@just --list --justfile {{ justfile() }}
# Make sure dependencies are installed before running any recipe
_check_deps:
@bash docker/bin/install_dependencies.sh
# Main test command recompile GL0 & setup docker environment `just test --skip-assembly` to restart without assembling.
test *extra_args:
@just _check_deps
@bash docker/bin/compose-runner.sh {{ extra_args }}
# Bring up the default test environment, starting docker images but without running any tests or checks
up *extra_args:
@just _check_deps
@bash docker/bin/compose-runner.sh --up {{ extra_args }}
# Destroy test environment, alias for clean-docker
down *extra_args:
@just clean-docker
# Build the docker images and test environment, without running any containers
build *extra_args:
@just _check_deps
@bash docker/bin/compose-runner.sh --build {{ extra_args }}
purge-docker:
@bash docker/bin/purge-docker.sh
clean-docker:
@bash docker/bin/tessellation-docker-cleanup.sh
clean-configs:
@bash docker/bin/clean-configs.sh
clean:
@bash sbt clean
@bash cd .github/templates/metagraphs/project_template && sbt clean
@just clean-configs
@just clean-docker
debug-main:
@just _check_deps
@bash docker/bin/debug/mn-replicate.sh
check:
@bash sbt --error 'scalafixAll --check --rules OrganizeImports;scalafmtCheckAll;test'
# Generate test user keys for bulk transaction testing
generate-test-keys num_keys='10':
@bash docker/bin/generate-test-user-keys.sh {{ num_keys }}