forked from transferwise/pipelinewise-tap-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
36 lines (26 loc) · 731 Bytes
/
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
.DEFAULT_GOAL := setup
create_venv:
rm -Rf venv
python3 -m venv venv
setup_local_db:
chmod u+x bin/setup_local_db.sh
./bin/setup_local_db.sh
upgrade_pip:
. venv/bin/activate; \
python3 -m pip install -U pip setuptools
populate_db:
venv/bin/python3 ./bin/populate_test_database.py etl secret@1
install_dep:
. venv/bin/activate; \
python3 -m pip install -e .[test,dev]
check_dep:
. venv/bin/activate; \
python3 -m pip check && echo "No conflicts" || exit 1
setup: create_venv setup_local_db upgrade_pip install_dep check_dep
echo "Setup is finished"
pylint:
pylint tap_mongodb tap_mongodb/sync_strategies --rcfile=pylintrc
test:
pytest tests -v
test_cov:
pytest --cov=tap_mongodb tests -v --cov-fail-under=42