debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DH_GOLANG_EXCLUDES := examples |
| 4 | |
| 5 | # Required for tests: |
| 6 | export DH_GOLANG_INSTALL_EXTRA := ./pkg/credentials/config.json.sample ./pkg/credentials/credentials.sample |
| 7 | |
| 8 | %: |
| 9 | dh $@ --buildsystem=golang --with=golang |
| 10 | override_dh_auto_test: |
| 11 | # set -short param to avoid tests that access to s3.amazonaws.com |
| 12 | # api_functional_v4_test.go is needed for other tests to run |
| 13 | dh_auto_test -- -short |