-
Notifications
You must be signed in to change notification settings - Fork 117
/
Taskfile.yml
83 lines (69 loc) · 2.19 KB
/
Taskfile.yml
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
78
79
80
81
82
83
version: "3"
silent: true
tasks:
default:
deps:
- build
docs:
cmds:
- ./gradlew javadoc
build:
cmds:
- ./gradlew compileJava {{.CLI_ARGS}}
clean:
cmds:
- ./gradlew clean
package:
cmds:
- ./gradlew sdk:assemble
test:
deps:
- "test:unit"
- "test:integration"
"test:unit":
cmds:
- ./gradlew test {{.CLI_ARGS}}
"test:integration":
cmds:
- ./gradlew -POPERATOR_ID=$OPERATOR_ID -POPERATOR_KEY=$OPERATOR_KEY -PHEDERA_NETWORK=$HEDERA_NETWORK testIntegration {{.CLI_ARGS}}
env:
OPERATOR_KEY: '0xa608e2130a0a3cb34f86e757303c862bee353d9ab77ba4387ec084f881d420d4'
OPERATOR_ID: '0.0.1022'
HEDERA_NETWORK: 'localhost'
"update:snapshots":
cmds:
- rm sdk/src/test/java/com/hedera/hashgraph/sdk/*.snap
- ./gradlew clean test
"update:proto":
vars:
proto: '{{.proto | default }}'
cmds:
- ./scripts/update_protobufs.py {{.proto}}
"update:addressbooks:mainnet":
cmds:
- ./gradlew examples:runGetAddressBook
- mv examples/address-book.proto.bin sdk/src/main/resources/addressbook/mainnet.pb
env:
HEDERA_NETWORK: mainnet
"update:addressbooks:testnet":
cmds:
- ./gradlew examples:runGetAddressBook
- mv examples/address-book.proto.bin sdk/src/main/resources/addressbook/testnet.pb
env:
HEDERA_NETWORK: testnet
"update:addressbooks:previewnet":
cmds:
- ./gradlew examples:runGetAddressBook
- mv examples/address-book.proto.bin sdk/src/main/resources/addressbook/previewnet.pb
env:
HEDERA_NETWORK: previewnet
"update:addressbooks":
cmds:
- task: "update:addressbooks:mainnet"
- task: "update:addressbooks:testnet"
- task: "update:addressbooks:previewnet"
update:
cmds:
- task: "update:proto"
- task: "update:snapshots"
- task: "update:addressbooks"