Added makefile targets for ki6 docker image.

This commit is contained in:
Salvador E. Tropea 2022-01-07 17:35:13 -03:00
parent 960f5565f0
commit 562dd9c240
1 changed files with 20 additions and 0 deletions

View File

@ -71,6 +71,16 @@ test_docker_local_1:
$(PY_COV) report
x-www-browser htmlcov/index.html
test_docker_local_1_ki6:
rm -rf output
#$(PY_COV) erase
# Run in the same directory to make the __pycache__ valid
# Also change the owner of the files to the current user (we run as root like in GitHub)
docker run --rm -v $(CWD):$(CWD) --workdir="$(CWD)" setsoft/kicad_auto_test:ki6 \
/bin/bash -c "flake8 . --count --statistics ; python3-coverage run -a src/kibot --help-outputs > /dev/null; pytest-3 --log-cli-level debug -k 'test_kicad_conf_user' --test_dir output ; $(PY_COV) html; chown -R $(USER_ID):$(GROUP_ID) output/ tests/board_samples/ .coverage htmlcov/"
#$(PY_COV) report
#x-www-browser htmlcov/index.html
test_docker_local:
rm -rf output
$(PY_COV) erase
@ -81,6 +91,16 @@ test_docker_local:
$(PY_COV) report
x-www-browser htmlcov/index.html
test_docker_local_ki6:
rm -rf output
$(PY_COV) erase
# Run in the same directory to make the __pycache__ valid
# Also change the owner of the files to the current user (we run as root like in GitHub)
docker run --rm -v $(CWD):$(CWD) --workdir="$(CWD)" setsoft/kicad_auto_test:ki6 \
/bin/bash -c "flake8 . --count --statistics ; python3-coverage run -a src/kibot --help-outputs ; pytest-3 --test_dir output ; $(PY_COV) html; chown -R $(USER_ID):$(GROUP_ID) output/ tests/board_samples/ .coverage htmlcov/"
$(PY_COV) report
x-www-browser htmlcov/index.html
docker_shell:
docker run -it --rm -v $(CWD):$(CWD) --workdir="$(CWD)" \
-v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$(DISPLAY) \