forked from pyvideo/old-pyvideo-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (34 loc) · 1.76 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
43
44
45
PY?=python3
BASEDIR=$(CURDIR)
TESTSDIR=$(BASEDIR)/.tests
SCHEMASDIR=$(BASEDIR)/.schemas
export PYTHONPATH := $(BASEDIR):$(TESTSDIR)
VERBOSE ?= 0
help:
@echo 'Makefile for a testing pytube/data '
@echo ' '
@echo 'Usage: '
@echo ' make test run all tests '
@echo ' make test-schemas run schema validation tests '
@echo ' make test-ids-unique run "unique IDs" test '
@echo ' make test-slugs-unique run "unique slugs" test '
@echo ' make test-render-rest run ReST rendering test '
@echo ' make test-shape run data shape test '
@echo ' '
@echo 'Set the VERBOSE variable to 1 to enable more verbose output. '
@echo 'e.g. make VERBOSE=1 test '
@echo ' '
install-deps:
pip install -r $(TESTSDIR)/requirements.txt
test-schemas: install-deps
$(PY) $(TESTSDIR)/schemas.py -d $(BASEDIR) -s $(SCHEMASDIR) -v $(VERBOSE)
test-ids-unique: install-deps
$(PY) $(TESTSDIR)/ids_unique.py -d $(BASEDIR)
test-slugs-unique: install-deps
$(PY) $(TESTSDIR)/slugs_unique.py -d $(BASEDIR)
test-render-rest: install-deps
$(PY) $(TESTSDIR)/render_rest.py -d $(BASEDIR)
test-shape: install-deps
$(PY) $(TESTSDIR)/shape.py -d $(BASEDIR)
test: test-schemas test-ids-unique test-slugs-unique test-render-rest test-shape
.PHONY: help test test-schemas test-ids-unique test-slugs-unique test-render-rest test-shape