debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | # Do not build examples |
| 4 | export DH_GOLANG_EXCLUDES := examples integration_test.go |
| 5 | |
| 6 | %: |
| 7 | dh $@ --builddirectory=_build --buildsystem=golang --with=golang |
| 8 | |
| 9 | override_dh_auto_test: |
| 10 | # Disable the integration tests since they require a running Kafka cluster. |
| 11 | find _build -type f -name integration_test.go -delete |
| 12 | ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 13 | dh_auto_test |
| 14 | endif |