Skip the tests if the nocheck Debian build option is specified

This commit is contained in:
Emmanuel Bourg 2021-10-06 12:46:40 +02:00 committed by GitHub
parent b8aeb76f29
commit c8fb0b5a46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
debian/rules vendored
View File

@ -45,7 +45,9 @@ override_dh_auto_build:
(cd ${SRCDIR} && go install -buildmode=pie ./...)
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
(cd ${SRCDIR} && go test -v ./...)
endif
override_dh_auto_install:
cp ${GOBIN}/yq ${DESTDIR}/${BINDIR}