forked from DA0-DA0/polytone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
35 lines (30 loc) · 728 Bytes
/
justfile
File metadata and controls
35 lines (30 loc) · 728 Bytes
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
build:
cargo build
test:
cargo test
optimize:
./devtools/optimize.sh
simtest: optimize
go clean -testcache
cd tests/simtests && go test ./...
integrationtest: optimize
go clean -testcache
cd tests/strangelove && go test ./...
# ${f <-- from variable f
# ## <-- greedy front trim
# * <-- matches anything
# / <-- until the last '/'
# }
# <https://stackoverflow.com/a/3162500>
schema:
start=$(pwd); \
for f in ./contracts/*; \
do \
echo "generating schema for ${f##*/}"; \
cd "$f" && cargo schema && cd "$start" \
;done
for f in ./accessories/*; \
do \
echo "generating schema for ${f##*/}"; \
cd "$f" && cargo schema && cd "$start" \
;done