Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 UPSTREAM_GIT := https://opendev.org/openstack/octavia-tempest-plugin
4 include /usr/share/openstack-pkg-tools/pkgos.make
5
6 %:
7 dh $@ --buildsystem=pybuild --with python3
8
9 override_dh_auto_configure:
10 echo "Do nothing..."
11
12 override_dh_auto_clean:
13 python3 setup.py clean
14 rm -rf build .stestr *.egg-info .pybuild .cache .config octavia_tempest_plugin/contrib/test_server/test_server.bin
15 find . -iname '*.pyc' -delete
16 for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done
17
18 override_dh_auto_test:
19 echo "Do nothing..."
20
21 override_dh_auto_install:
22 echo "Do nothing..."
23
24 override_dh_auto_build:
25 XDG_CACHE_DIR=$(CURDIR) HOME=$(CURDIR) CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-s -w -extldflags -static' -o $(CURDIR)/octavia_tempest_plugin/contrib/test_server/test_server.bin $(CURDIR)/octavia_tempest_plugin/contrib/test_server/test_server.go
26 echo "Do nothing..."
27
28 override_dh_install:
29 pkgos-dh_auto_install --no-py2 --in-tmp
30
31 #ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
32 # pkgos-dh_auto_test --no-py2
33 #endif
34
35 dh_install
36 dh_missing --fail-missing
37
38 override_dh_python3:
39 dh_python3 --shebang=/usr/bin/python3