-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest_components.yaml
40 lines (36 loc) · 1.63 KB
/
test_components.yaml
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
steps:
- script: |
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk start --background status_monitor
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk start --background node
sleep 5
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk start --background header_sv
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk node generate 1
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk start --background --deterministic-seed electrumsv
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk start --background simple_indexer
sleep 5
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk status
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk node --id=node1 getinfo
$(PYTHON_EXE) ./contrib/check_all_started.py 5
displayName: 'Start all python-based components (testing)'
continueOnError: true
- script: |
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk stop node
sleep 5
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk stop header_sv
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk stop electrumsv
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk stop simple_indexer
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk stop status_monitor
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk status
$(PYTHON_EXE) ./contrib/check_all_stopped.py
displayName: 'Stop all python-based components (testing)'
continueOnError: true
- script: |
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk reset node
sleep 5
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk reset header_sv
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk reset electrumsv
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk reset simple_indexer
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk reset status_monitor
$(PYTHON_SCRIPTS_DIR)/electrumsv-sdk status
displayName: 'Reset all python-based components (testing)'
continueOnError: true