2024-05-26 16:27:10 +02:00
|
|
|
{ depot, pkgs, lib, ... }:
|
2023-09-21 21:32:44 +02:00
|
|
|
|
2024-05-02 23:09:46 +02:00
|
|
|
(depot.tvix.crates.workspaceMembers.tvix-castore.build.override {
|
2023-09-21 21:32:44 +02:00
|
|
|
runTests = true;
|
2024-03-03 16:46:20 +01:00
|
|
|
testPreRun = ''
|
2024-07-07 16:16:36 +02:00
|
|
|
export SSL_CERT_FILE=/dev/null
|
2024-03-03 16:46:20 +01:00
|
|
|
'';
|
2024-05-26 16:27:10 +02:00
|
|
|
}).overrideAttrs (old: rec {
|
|
|
|
meta.ci.targets = [ "integration-tests" ] ++ lib.filter (x: lib.hasPrefix "with-features" x || x == "no-features") (lib.attrNames passthru);
|
|
|
|
passthru = (depot.tvix.utils.mkFeaturePowerset {
|
|
|
|
inherit (old) crateName;
|
|
|
|
features = ([ "cloud" "fuse" "tonic-reflection" ]
|
|
|
|
# virtiofs feature currently fails to build on Darwin
|
|
|
|
++ lib.optional pkgs.stdenv.isLinux "virtiofs");
|
|
|
|
override.testPreRun = ''
|
2024-07-07 16:16:36 +02:00
|
|
|
export SSL_CERT_FILE=/dev/null
|
2024-05-02 23:09:46 +02:00
|
|
|
'';
|
2024-05-26 16:27:10 +02:00
|
|
|
}) // {
|
|
|
|
integration-tests = depot.tvix.crates.workspaceMembers.${old.crateName}.build.override (old: {
|
|
|
|
runTests = true;
|
|
|
|
testPreRun = ''
|
2024-07-07 16:16:36 +02:00
|
|
|
export SSL_CERT_FILE=/dev/null
|
2024-05-26 16:27:10 +02:00
|
|
|
export PATH="$PATH:${pkgs.lib.makeBinPath [ pkgs.cbtemulator pkgs.google-cloud-bigtable-tool ]}"
|
|
|
|
'';
|
|
|
|
features = old.features ++ [ "integration" ];
|
|
|
|
});
|
2024-05-02 23:09:46 +02:00
|
|
|
};
|
|
|
|
})
|