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
|
#!/usr/bin/make -f
export DH_GOLANG_GO_GENERATE := 1
export DH_GOLANG_INSTALL_EXTRA := $(shell find . -name fixtures-expired) \
$(shell find . -name fixtures)
# The ignored pkgs are aligned with upstream ./test file,
# see variables IGNORE_PKGS and INTEGRATION_PKGS in ./test
export TEST_EXCLUDES := cmd/ etcdserverpb rafttest gopath.proto v3lockpb v3electionpb \
integration e2e contrib functional
%:
dh $@ --buildsystem=golang --with=golang --builddirectory=_build
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
DH_GOLANG_EXCLUDES="$(TEST_EXCLUDES)" dh_auto_test -- -run=Test
find _build -type s -delete
endif
# Handle package name (etcd-server) != service name (etcd)
override_dh_installinit:
dh_installinit -p etcd-server --name=etcd
override_dh_installsystemd:
dh_installsystemd -p etcd-server --name=etcd
|