-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
35 lines (27 loc) · 1.19 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
.PHONY: lint test unit-tests
MODULES=matrix tests daemons chalice
EXCLUDE=target,vendor,chalicelib,target.in
deploy:
$(MAKE) -C chalice $@
$(MAKE) -C daemons $@
cp scripts/dss_subscription.py .
python dss_subscription.py
rm dss_subscription.py
cp scripts/redshift/setup_readonly_user.py .
python setup_readonly_user.py
rm setup_readonly_user.py
test: lint unit-tests
lint:
flake8 $(MODULES) --exclude $(EXCLUDE) *.py --ignore=W503
bump-data-version:
python3 scripts/redshift/bump_data_version.py
set-data-version:
python3 scripts/redshift/set_data_version.py --version $(MATRIX_DATA_VERSION)
unit-tests:
PYTHONWARNINGS=ignore:ResourceWarning coverage run --source=matrix,scripts --omit=scripts/build_missing_wheels.py,scripts/matrix-service-api.py,scripts/redshift/ec2_instance_manager.py\
-m unittest discover --start-directory tests/unit --top-level-directory . --verbose
functional-tests:
PYTHONWARNINGS=ignore:ResourceWarning python \
-m unittest discover --start-directory tests/functional --top-level-directory . --verbose
load-tests:
cd tests/locust && locust --host=https://matrix.staging.data.humancellatlas.org --no-web --client=$(NUM_CLIENTS) --hatch-rate=1 --run-time=$(RUN_TIME)