forked from ctera/ctera-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (34 loc) · 1.08 KB
/
Makefile
File metadata and controls
48 lines (34 loc) · 1.08 KB
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
46
47
48
# *** WARNING: Targets are meant to run in a build container - Use skipper make ***
all: pylint flake8 doc8
flake8:
flake8 cterasdk
pylint:
mkdir -p build/
PYLINTHOME=reports/ pylint -r n cterasdk
doc8:
doc8 docs/source
test:
# Run the unittests and create a junit-xml report
mkdir -p build/
nose2 --config=tests/ut/nose2.cfg --verbose --project-directory .
coverage: test
# Create a coverage report and validate the given threshold
coverage html --fail-under=60 -d build/coverage
nose2:
mkdir -p build/
# Run the example nose2 tests - validate the package works
DTT_COMPOSE_PATH=$(DTT_COMPOSE_PATH) \
nose2 --config=tests/integration/nose2.cfg --verbose --project-directory .
pytest:
mkdir -p build/
# Run the example pytest tests - validate the package works
DTT_COMPOSE_PATH=$(DTT_COMPOSE_PATH) \
pytest -v tests/integration/
prepare-dist:
# Create the source distribution
python3 setup.py sdist bdist_wheel
upload-test:
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
clean:
# Clean any generated files
rm -rf build dist .coverage .cache