-
Notifications
You must be signed in to change notification settings - Fork 21
/
justfile
61 lines (48 loc) · 1.45 KB
/
justfile
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
workspaces := "./framework ./modules ./interchain"
# Pull a specific repo from its main remote
pull repo:
git subtree pull --prefix={{repo}} {{repo}} main
# Push the local repo to a specific branch
push repo branch:
git subtree push --prefix={{repo}} {{repo}} {{branch}}
# Run a cargo command in all the workspace repos
cargo-all *command:
#!/usr/bin/env bash
set -e;
for path in {{workspaces}}
do
(cd $path; cargo {{command}});
done
set +e
test-all:
just cargo-all test
check path:
(cd {{path}}; cargo check)
check-all path:
(cd {{path}}; cargo check --all-features)
nightly-build:
just cargo-all build --all-features
# Wasms all the workspaces that can be wasm'd
wasm-all:
./scripts/wasm-all.sh
# Wasms all the workspaces that can be wasm'd
wasm-all-ci:
./scripts/wasm-all-ci.sh
# Generates JSON schemas for all the contracts in the repo.
schema:
#!/usr/bin/env bash
set -e
rm -rf schema # We don't want to keep previous version schemas or contracts we don't support anymore inside this repo
sh scripts/modules-schema.sh
sh scripts/framework-schema.sh
set +e
# Requires you to have the schema repo cloned in the same directory as the contract repo
# https://github.com/AbstractSDK/schemas
copy-schema:
#!/usr/bin/env bash
set -e
cp -r schema/. ../schemas/abstract
nightly-fmt:
just cargo-all +nightly fmt
circle-ci-export-key key-id:
gpg -a --export-secret-keys {{key-id}} | cat -e | sed 's/\$/\\n/g'