#!/usr/bin/make -f
# DH_VERBOSE := 1
export LC_ALL=C.UTF-8
export PYBUILD_NAME=cnvkit

# Waiting for upstream to fix this.
# Reported here: https://github.com/etal/cnvkit/issues/1103
ifeq ($(shell nproc),1)
PATTERN := not test_cbs \
           and not test_process_pool_exception_propagation \
           and not test_pick_pool_with_multiple_processes \
           and not test_segment_parallel \
           and not test_coverage \
           and not test_diploid_parx_genome
export PYBUILD_TEST_ARGS = -k "${PATTERN}"
endif

%:
	dh $@ --buildsystem=pybuild

execute_before_dh_auto_clean:
	cd test && ${MAKE} clean || /bin/true
