| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Exclude cas/cloudcas, kms/cloudkms and cmd/step-cloudkms-init until |
| 4 |
# golang-google-cloud in Debian has been updated to v0.83.0+ |
| 5 |
export DH_GOLANG_EXCLUDES := \ |
| 6 |
cmd \ |
| 7 |
cas/cloudcas \ |
| 8 |
kms/cloudkms \ |
| 9 |
kms/azurekms \ |
| 10 |
cas/vaultcas \ |
| 11 |
examples \ |
| 12 |
scripts/badger-migration \ |
| 13 |
# EOF |
| 14 |
|
| 15 |
export DH_GOLANG_INSTALL_EXTRA := authority/provisioner/aws_certificates.pem |
| 16 |
|
| 17 |
%: |
| 18 |
dh $@ --builddirectory=_build --buildsystem=golang |
| 19 |
|
| 20 |
execute_before_dh_auto_configure: |
| 21 |
chmod -v -x policy/engine.go policy/engine_test.go policy/options.go |
| 22 |
rm -fv authority/provisioner/nebula*.go |
| 23 |
|
| 24 |
override_dh_auto_install: |
| 25 |
dh_auto_install -- --no-binaries |
| 26 |
|
| 27 |
# TestCustomTemplateOptions: https://github.com/smallstep/certificates/issues/2441 |
| 28 |
# TestClient_GetServerTLSConfig_renew: https://github.com/smallstep/certificates/issues/2443 |
| 29 |
SKIP_TESTS="Test_newHTTPClient|TestPKI_GenerateConfig|TestDB_GetDpopToken|TestDB_CreateDpopToken|TestDB_GetOidcToken|TestDB_CreateOidcToken|TestCustomTemplateOptions|TestClient_GetServerTLSConfig_renew" |
| 30 |
override_dh_auto_test: |
| 31 |
dh_auto_test $(DH_BUILD_OPTS) -- -timeout 30m -skip $(SKIP_TESTS) |
| 32 |
-timeout 5m dh_auto_test $(DH_BUILD_OPTS) -- -run $(SKIP_TESTS) |