File: rules

package info (click to toggle)
limnoria 2017.01.10-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,376 kB
  • sloc: python: 40,318; makefile: 19; sh: 12
file content (23 lines) | stat: -rwxr-xr-x 527 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

export DH_VERBOSE=1
export PYBUILD_NAME=limnoria

%:
	dh $@ --with python3 --buildsystem pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	LC_ALL=C.UTF-8 \
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="PYTHONPATH={build_dir} \
		build/scripts-{version}/supybot-test \
		test \
		--no-setuid \
		--no-network \
		--disable-multiprocessing \
		--plugins-dir={build_dir}/supybot/plugins/" \
	dh_auto_test
else
	@echo "Skipping test suite as DEB_BUILD_OPTIONS=nocheck is set"
endif