diff options
Diffstat (limited to '')
-rwxr-xr-x | debian/rules | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules index 24db829..b0f80a6 100755 --- a/debian/rules +++ b/debian/rules @@ -1,8 +1,24 @@ #!/usr/bin/make -f -include /usr/share/dpkg/pkg-info.mk +export LC_ALL=C.UTF-8 +export PYBUILD_BEFORE_TEST=cp --recursive {dir}/examples {dir}/conftest.py {dir}/.pre-commit-config.yaml {dir}/.ansible-lint {build_dir}/ +export PYBUILD_AFTER_TEST=rm -Rf {build_dir}/examples {build_dir}/conftest.py {build_dir}/.pre-commit-config.yaml {build_dir}/.ansible-lint -%: - dh $@ --with python3 --buildsystem=pybuild +export PYBUILD_TEST_ARGS=-n auto -k "not (test_spdx or test_args_module_pass or test_risky_file_permissions or test_fqcn_builtin_fail or test_fqcn_builtin_pass or test_transformer or test_call_from_outside_venv or test_schema_moves or test_rules_id_format or test_yamllint or test_example or test_example_custom_module or test_verbosity or test_task_hook_import_playbook)" +# test_spdx: requires the yet-to-be-packaged https://pypi.org/project/spdx/ +# test_args_module_pass: require internet access +# test_risky_file_permissions: requires internet access +# test_fqcn_builtin_fail: requires internet access +# test_fqcn_builtin_pass: requires internet access +# test_transformer: required internet access +# test_call_from_outside_venv: assumes we are running the test from a virtualenv +# test_schema_moves: unknown +# test_rules_id_format: unknown +# test_yamllint: unknown (due to different version of yamllint?) +# test_example: unknown +# test_example_custom_module: unknown +# test_verbosity: unknown +# test_task_hook_import_playbook: unknown -override_dh_auto_test: +%: + dh $@ --buildsystem=pybuild |