-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
35 lines (25 loc) · 1.23 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
SHELL = bash
PYTHON_VERSION = 3
all: tests doc
setup:
tests: setup
LC_CTYPE=C.UTF8 python3 setup.py test
dist: clean tests
python3 setup.py sdist bdist_wheel
docker:
export KICADLIBRARY_VERSION="$$(python3 setup.py --get-version)" ; \
export VCS_REF="$$(git rev-parse --short HEAD)" ; \
export PYTHON_VERSION=$(PYTHON_VERSION) ; \
docker build -t "madworx/robotframework-kicadlibrary:$${KICADLIBRARY_VERSION/+/-}" --build-arg=KICADLIBRARY_VERSION --build-arg=VCS_REF --build-arg=PYTHON_VERSION .
docker-extract-artifacts:
export KICADLIBRARY_VERSION="$$(python3 setup.py --get-version)" ; \
docker run --rm --entrypoint /bin/tar "madworx/robotframework-kicadlibrary:$${KICADLIBRARY_VERSION/+/-}" cf - build | tar xvf -
setup-environment:
pip install . --user
pip install coverage --user
doc:
python3 setup.py build_rf_docs
clean:
find . -type f \( -name '*.pyc' -o -name coverage.xml -o -name .coverage -o -name nosetests.xml -o -name pylint-report.txt -o -name '*~' -o -name '#*#' \) -delete
distclean: clean
find . -depth -type d \( -name '*.eggs' -o -name '*.egg-info' -o -name '__pycache__' -o -name '.pytest_cache' -o -name '.cache' -o -name '.scannerwork' -o -name 'dist' -o -name 'docs' -o -name 'build' \) -print0 | xargs -r0 rm -r