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_EXE: result-bin/bin/garage
|
||||||
GARAGE_TEST_INTEGRATION_PATH: tmp-garage-integration
|
GARAGE_TEST_INTEGRATION_PATH: tmp-garage-integration
|
||||||
commands:
|
commands:
|
||||||
- nix-build -j4 --attr flakePackages.tests-lmdb
|
- nix-build -j4 --attr flakePackages.tests
|
||||||
- nix-build -j4 --attr flakePackages.tests-sqlite
|
|
||||||
- rm result
|
- rm result
|
||||||
|
|
||||||
- name: integration tests
|
- name: integration tests
|
||||||
|
|
13
flake.nix
13
flake.nix
|
@ -45,12 +45,13 @@
|
||||||
dev = packageFor null false;
|
dev = packageFor null false;
|
||||||
|
|
||||||
# test = cargo test
|
# test = cargo test
|
||||||
tests = testWith {};
|
tests = pkgs.symlinkJoin {
|
||||||
tests-lmdb = testWith {
|
name = "garage-tests-multi";
|
||||||
GARAGE_TEST_INTEGRATION_DB_ENGINE = "lmdb";
|
paths = map
|
||||||
};
|
(dbEngine: testWith {
|
||||||
tests-sqlite = testWith {
|
GARAGE_TEST_INTEGRATION_DB_ENGINE = dbEngine;
|
||||||
GARAGE_TEST_INTEGRATION_DB_ENGINE = "sqlite";
|
})
|
||||||
|
[ "lmdb" "sqlite" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue