Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DH_GOLANG_EXCLUDES := examples
4
5 %:
6 dh $@ --buildsystem=golang --with=golang
7
8 override_dh_auto_test:
9 # Testing drivers/store/redis requires a running redis server, let's skip it.
10 # To find test targets dh-golang uses the same mechanism it uses to find build
11 # targets, so we can use DH_GOLANG_EXCLUDES to skip tests.
12 DH_GOLANG_EXCLUDES="$(DH_GOLANG_EXCLUDES) drivers/store/redis" dh_auto_test
13
14 override_dh_auto_install:
15 dh_auto_install
16
17 # Workaround for #904261:
18 for pkg in $(DH_GOLANG_EXCLUDES); do \
19 rm -rfv debian/*/usr/share/gocode/src/github.com/ulule/limiter/$$pkg;\
20 done