-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
41 lines (32 loc) · 976 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
37
38
39
40
41
SHELL = /bin/bash
MODULE = dags
init:
pip install --upgrade pip
pip install --upgrade setuptools
pip install -r requirements-setup.txt
pip install -r requirements-test.txt
pip install -r requirements.txt
run: clean
@echo
@echo --- Running Dockerized Airflow ---
docker-compose -f docker/docker-compose.yml up --build
lint:
@echo
@echo --- Lint ---
python -m flake8 ${MODULE}/
test:
@echo
@echo --- Test ---
python -m pytest -v -m "not uploadtests" --cov=${MODULE} --cov-branch tests/
integration-test:
@echo --- CSV Upload Integration Test with Moto Fake S3 APIs ---
python -m pytest -v -m uploadtests --cov=${MODULE} --cov-branch tests/
clean:
@echo
@echo --- Clean ---
python setup.py clean
find ${MODULE} | grep -E "(__pycache__|\.pyc|\.pyo$$)" | xargs rm -rf
find tests | grep -E "(__pycache__|\.pyc|\.pyo$$)" | xargs rm -rf
if [ -d ".pytest_cache" ]; then rm -r .pytest_cache; fi
if [ -d ".coverage" ]; then rm .coverage; fi
.PHONY: test