File: rules

package info (click to toggle)
pyxnat 1.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,204 kB
  • sloc: python: 6,016; makefile: 28; sh: 17; xml: 11
file content (40 lines) | stat: -rwxr-xr-x 1,347 bytes parent folder | download
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
35
36
37
38
39
40
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=pyxnat

export PYBUILD_BEFORE_TEST=set -e \
	; cp -a pyxnat/tests {build_dir}/pyxnat \
	; cp pyxnat/tests/central.cfg {build_dir}/.central.cfg \
	; cp pyxnat/tests/central.cfg {build_dir}/.devxnat.cfg \
	; rm -f {build_dir}/pyxnat/tests/attributes_test.py \
	; rm -f {build_dir}/pyxnat/tests/custom_variables_test.py \
	; rm -f {build_dir}/pyxnat/tests/project_manager_test.py \
	; rm -f {build_dir}/pyxnat/tests/provenance_test.py \
	; rm -f {build_dir}/pyxnat/tests/resources_test.py \
	; rm -f {build_dir}/pyxnat/tests/search_test.py \
	; rm -f {build_dir}/pyxnat/tests/user_and_project_management_test.py \
	; rm -f {build_dir}/pyxnat/tests/xpath_test.py

export PYBUILD_AFTER_TEST=set -e \
	; rm {build_dir}/pyxnat/tests/central.cfg \
	; rm {build_dir}/pyxnat/tests/sess.xml \
	; rm {build_dir}/pyxnat/tests/results.csv \
	; rm {build_dir}/pyxnat/tests/hello_again.txt \
	; rm {build_dir}/pyxnat/tests/hello_dir.zip \
	; rm {build_dir}/pyxnat/tests/hello_xnat.txt

export PYXNAT_SKIP_NETWORK_TESTS=yes

PYBUILD_TEST_ARGS=-k-Xtest_close_jsession -k-Xtest_001_sessionmirror

export  http_proxy=http://127.0.0.1:9/
export  https_proxy=http://127.0.0.1:9/

%:
	dh $@ --buildsystem=pybuild

override_dh_installman:
	dh_installman --language=C