diff --git a/Makefile b/Makefile index 107ff5f3..e16999ba 100644 --- a/Makefile +++ b/Makefile @@ -102,6 +102,14 @@ test_docker_local_1_ki6: #x-www-browser htmlcov/index.html # docker run --rm -v $(CWD):$(CWD) --workdir="$(CWD)" ghcr.io/inti-cmnb/kicad6_auto_full:latest \ +test_docker_local_1_ki8: + rm -rf output + rm -f tests/.local + # 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)" ghcr.io/inti-cmnb/kicad_auto_test:ki8 \ + /bin/bash -c "flake8 . --count --statistics ; python3-coverage run src/kibot --help-outputs > /dev/null; pytest-3 --log-cli-level debug -k '$(SINGLE_TEST)' --test_dir=output ; $(PY_COV) html; chown -R $(USER_ID):$(GROUP_ID) output/ tests/board_samples/ tests/.config/kiplot/plugins/__pycache__/ tests/test_plot/fake_pcbnew/__pycache__/ tests/.config/kibot/plugins/__pycache__/ .coverage htmlcov/ .cache" + test_docker_local_1_ki7: rm -rf output rm -f tests/.local @@ -124,7 +132,7 @@ test_docker_local_1_sn: /bin/bash -c "export KIBOT_COPY_REF=$(KIBOT_COPY_REF); src/kibot --help-outputs > /dev/null ; pytest-3 --log-cli-level debug -k '$(SINGLE_TEST)' --test_dir=output ; chown -R $(USER_ID):$(GROUP_ID) output/ tests/board_samples/ tests/.config/kiplot/plugins/__pycache__/ tests/test_plot/fake_pcbnew/__pycache__/ tests/.config/kibot/plugins/__pycache__/ .coverage htmlcov/ .cache" # rm -R .cache/ ; KIBOT_COPY_REF="1" SINGLE_TEST=test_print_sch_variant_ni_2 make test_docker_local_1_sn -t1k8: t1n +t1k8: test_docker_local_1_ki8 t1n: test_docker_local_1_n @@ -162,6 +170,16 @@ test_docker_local_ki7: $(PY_COV) report x-www-browser htmlcov/index.html +test_docker_local_ki8: + rm -rf output + rm -f tests/.local + $(PY_COV) erase + docker run --rm -v $(CWD):$(CWD) --workdir="$(CWD)" ghcr.io/inti-cmnb/kicad_auto_test:ki8 \ + /bin/bash -c "python3-coverage run src/kibot --help-outputs ; pytest-3 --test_dir=output ; $(PY_COV) html; chown -R $(USER_ID):$(GROUP_ID) output/ tests/board_samples/ .coverage htmlcov/ .cache" + $(PY_COV) combine + $(PY_COV) report + x-www-browser htmlcov/index.html + test_docker_local_manjaro: rm -rf output_manjaro rm -f tests/.local