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 Mike Farah
parent bec30e910f
commit e87808683a

2
debian/rules vendored
View File

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