This commit is contained in:
Hsiao-Wei Wang 2019-06-07 23:00:28 -04:00
parent 5b8cca8314
commit e52c4a5526
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
2 changed files with 4 additions and 5 deletions

View File

@ -48,13 +48,13 @@ commands:
description: "Restore the cache with deposit_contract keys"
steps:
- restore_cached_venv:
venv_name: v3-deposit-contract
venv_name: v4-deposit-contract
reqs_checksum: cache-{{ checksum "test_libs/pyspec/requirements.txt" }}-{{ checksum "deposit_contract/requirements-testing.txt" }}
save_deposit_contract_cached_venv:
description: Save a venv into a cache with deposit_contract keys"
steps:
- save_cached_venv:
venv_name: v3-deposit-contract
venv_name: v4-deposit-contract
reqs_checksum: cache-{{ checksum "test_libs/pyspec/requirements.txt" }}-{{ checksum "deposit_contract/requirements-testing.txt" }}
venv_path: ./deposit_contract/venv
jobs:

View File

@ -51,16 +51,15 @@ lint: $(PY_SPEC_ALL_TARGETS)
cd $(PY_SPEC_DIR); . venv/bin/activate; \
flake8 --ignore=E252,W504,W503 --max-line-length=120 ./eth2spec;
install_deposit_contract_test:
install_deposit_contract_test: $(PY_SPEC_ALL_TARGETS)
cd $(DEPOSIT_CONTRACT_DIR); python3 -m venv venv; . venv/bin/activate; pip3 install -r requirements-testing.txt
compile_deposit_contract:
cd $(DEPOSIT_CONTRACT_DIR); . venv/bin/activate; \
python tool/compile_deposit_contract.py contracts/validator_registration.v.py;
test_deposit_contract: $(PY_SPEC_ALL_TARGETS)
test_deposit_contract:
cd $(DEPOSIT_CONTRACT_DIR); . venv/bin/activate; \
pip3 install -r requirements-testing.txt; \
python -m pytest .
# "make pyspec" to create the pyspec for all phases.