promscale: enable checks

This commit is contained in:
0x4A6F 2022-01-19 00:06:57 +01:00
parent 47d0f19a57
commit 44dceeb0ef
No known key found for this signature in database
GPG key ID: 8DEDBA5BE07080E1

View file

@ -29,7 +29,16 @@ buildGoModule rec {
"-X github.com/timescale/promscale/pkg/version.CommitHash=${src.rev}"
];
doCheck = false; # Requires access to a docker daemon
checkPhase = ''
runHook preCheck
# some checks requires access to a docker daemon
for pkg in $(getGoDirs test | grep -Ev 'testhelpers|upgrade_tests|end_to_end_tests|util'); do
buildGoDir test $checkFlags "$pkg"
done
runHook postCheck
'';
passthru.tests.version = testVersion {
package = promscale;