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
|
#!/usr/bin/make -f
#export DH_VERBOSE = 1
# Ansible requires the locale encoding to be UTF-8
export LC_ALL=C.UTF-8
export ANSIBLE_COLLECTIONS_PATH=/tmp/ansible_collections
# Copy the "examples" directory into the build directory to prevent some tests
# from failing and clean it up when dh_auto_test ends
export PYBUILD_BEFORE_TEST=cp -r {dir}/examples {build_dir}/
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/examples
# Skip tests requiring internet access
TEST_TO_SKIP="not test_prepare_environment_with_collections \
and not test_prerun_reqs_v1 \
and not test_prerun_reqs_v2 \
and not test_load_plugins[modules] \
and not test_require_collection_install \
and not test_require_collection_no_cache_dir \
and not test_runtime_has_playbook \
and not test_get_cache_dir_isolation_no_venv_root \
and not test_runtime_plugins \
and not test_scan_sys_path[disabled] \
and not test_scan_sys_path[enabled] \
and not test_require_collection_preexisting_broken \
and not test_install_collection \
and not test_upgrade_collection \
and not test_require_collection_not_isolated \
and not test_ro_venv \
and not test_runtime_example"
export PYBUILD_TEST_ARGS=-k ${TEST_TO_SKIP}
%:
dh $@ --with python3 --buildsystem=pybuild
|