File: rules

package info (click to toggle)
swift-plugin-s3 1.11-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,168 kB
  • ctags: 1,265
  • sloc: python: 11,042; sh: 77; makefile: 24
file content (34 lines) | stat: -rwxr-xr-x 918 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
#!/usr/bin/make -f

UPSTREAM_GIT := https://github.com/openstack/swift3.git
include /usr/share/openstack-pkg-tools/pkgos.make

export OSLO_PACKAGE_VERSION=$(VERSION)

export SWIFT_HOST=http://127.0.0.1:9

%:
	dh $@  --with python2,sphinxdoc

override_dh_clean:
	dh_clean

	rm -rf cover .coverage

override_dh_auto_test:
	NOSE_WITH_OPENSTACK=1 \
		NOSE_OPENSTACK_COLOR=1 \
		NOSE_OPENSTACK_RED=0.05 \
		NOSE_OPENSTACK_YELLOW=0.025 \
		NOSE_OPENSTACK_SHOW_ELAPSED=1 \
		NOSE_OPENSTACK_STDOUT=1 \
		NOSE_WITH_COVERAGE=1 \
		NOSE_COVER_BRANCHES=1 \
		nosetests -v --exclude-dir=swift3/test/functional
#	set -e ; for pyversion in $(shell pyversions -r); do $$pyversion setup.py test; done

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. sphinx-build doc/source $(CURDIR)/debian/swift-plugin-s3/usr/share/doc/swift-plugin-s3/html
	dh_sphinxdoc -O--buildsystem=python_distutils
endif