/
Makefile
49 lines (34 loc) · 1.02 KB
/
Makefile
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
all: ci
lint:
flake8
checkformat:
black --check .
isort --check .
format:
black .
isort .
test:
pytest ${TEST_ARGS}
migrate:
alembic upgrade head
rollback:
alembic downgrade -1
migration:
alembic revision --autogenerate -m "${MESSAGE}"
regtest:
rm -rf ~/.electrum/regtest
BTC_DEBUG=true BTC_NETWORK=regtest BTC_SERVER=127.0.0.1:51002:s BTC_LIGHTNING=true python3 daemons/btc.py
regtestln:
rm -rf /tmp/bitcartln
BTC_DEBUG=true BTC_DATA_PATH=/tmp/bitcartln BTC_NETWORK=regtest BTC_SERVER=127.0.0.1:51002:s BTC_LIGHTNING=true BTC_LIGHTNING_LISTEN=0.0.0.0:9735 BTC_PORT=5110 python3 daemons/btc.py
testnet:
BTC_DEBUG=true BTC_NETWORK=testnet BTC_LIGHTNING=true python3 daemons/btc.py
mainnet:
BTC_DEBUG=true BTC_LIGHTNING=true BTC_NETWORK=mainnet python3 daemons/btc.py
bitcoind:
tests/functional/bootstrap/start_bitcoind.sh
fulcrum:
tests/functional/bootstrap/start_fulcrum.sh
functional:
BTC_LIGHTNING=true FUNCTIONAL_TESTS=true pytest tests/functional/ --cov-append -n 0 ${TEST_ARGS}
ci: checkformat lint test