summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: b0f80a62188cfd9b352e4802f04d96cdbcd1aea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

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

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

%:
	dh $@ --buildsystem=pybuild