summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..bd19989
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+export DH_GOLANG_EXCLUDES := examples
+
+# Required for tests:
+export DH_GOLANG_INSTALL_EXTRA := ./pkg/credentials/config.json.sample ./pkg/credentials/credentials.sample
+
+%:
+ dh $@ --buildsystem=golang --with=golang
+override_dh_auto_test:
+ # set -short param to avoid tests that access to s3.amazonaws.com
+ # api_functional_v4_test.go is needed for other tests to run
+ dh_auto_test -- -short