parallelize tests run (they run in different nix sandboxes)
This commit is contained in:
parent
32305cd2db
commit
63074c3cb3
2 changed files with 8 additions and 8 deletions
|
@ -24,8 +24,7 @@ steps:
|
|||
GARAGE_TEST_INTEGRATION_EXE: result-bin/bin/garage
|
||||
GARAGE_TEST_INTEGRATION_PATH: tmp-garage-integration
|
||||
commands:
|
||||
- nix-build -j4 --attr flakePackages.tests-lmdb
|
||||
- nix-build -j4 --attr flakePackages.tests-sqlite
|
||||
- nix-build -j4 --attr flakePackages.tests
|
||||
- rm result
|
||||
|
||||
- name: integration tests
|
||||
|
|
13
flake.nix
13
flake.nix
|
@ -45,12 +45,13 @@
|
|||
dev = packageFor null false;
|
||||
|
||||
# test = cargo test
|
||||
tests = testWith {};
|
||||
tests-lmdb = testWith {
|
||||
GARAGE_TEST_INTEGRATION_DB_ENGINE = "lmdb";
|
||||
};
|
||||
tests-sqlite = testWith {
|
||||
GARAGE_TEST_INTEGRATION_DB_ENGINE = "sqlite";
|
||||
tests = pkgs.symlinkJoin {
|
||||
name = "garage-tests-multi";
|
||||
paths = map
|
||||
(dbEngine: testWith {
|
||||
GARAGE_TEST_INTEGRATION_DB_ENGINE = dbEngine;
|
||||
})
|
||||
[ "lmdb" "sqlite" ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue