This repository has been archived by the owner on May 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
42 lines (36 loc) · 1.5 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
help:
@echo "bundle-docker - create standalone executable with PyInstaller via a docker container"
@echo "test - run tests"
@echo "coverage - check code coverage quickly with the default Python"
clean:
rm -rf build/ dist/
bundle-docker:
mkdir -p dist/
# build for mainnet
docker build -t pyinstallerbuilder -f tools/docker/build.Dockerfile .
-(docker rm builder)
docker create --name builder pyinstallerbuilder
docker cp builder:/raiden-wizard/raiden_wizard_linux.tar.gz dist/raiden_wizard_mainnet_linux.tar.gz
docker rm builder
# build for goerli
docker build --build-arg RAIDEN_INSTALLER_BUILD_ENTRY_SCRIPT="web_testnet.py" -t pyinstallerbuilder_goerli -f tools/docker/build.Dockerfile .
-(docker rm builder_goerli)
docker create --name builder_goerli pyinstallerbuilder_goerli
docker cp builder_goerli:/raiden-wizard/raiden_wizard_linux.tar.gz dist/raiden_wizard_goerli_linux.tar.gz
docker rm builder_goerli
build-mac: clean
pyinstaller --noconfirm --clean tools/pyinstaller/raiden_webapp.spec
tar -czf raiden_wizard_mainnet_macOS-1.0.x.tar.gz dist/raiden_wizard
rm dist/raiden_wizard
RAIDEN_INSTALLER_BUILD_ENTRY_SCRIPT="web_testnet.py" pyinstaller --noconfirm --clean tools/pyinstaller/raiden_webapp.spec
tar -czf raiden_wizard_goerli_macOS-1.0.x.tar.gz dist/raiden_wizard
rm dist/raiden_wizard
test:
pytest -rs tests
coverage:
coverage run --source raiden_installer -m pytest tests
coverage report -m
coverage html
install-dev:
pip install -r requirements.txt
cd tests/fake_blockchain; npm install