Skip to content
Snippets Groups Projects
Commit 656b7cd0 authored by Julien Girard-Satabin's avatar Julien Girard-Satabin
Browse files

[ci] Add target for testing non-regression in libraries

parent fa772170
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,12 @@ test: ...@@ -58,6 +58,12 @@ test:
- nix --extra-experimental-features "nix-command flakes" build - nix --extra-experimental-features "nix-command flakes" build
- nix --extra-experimental-features "nix-command flakes" flake check -L - nix --extra-experimental-features "nix-command flakes" flake check -L
test-lib:
stage: test
script:
- nix --extra-experimental-features "nix-command flakes" build
- nix --extra-experimental-features "nix-command flakes" develop --command make test-lib
## Manual generation of the documentation ## Manual generation of the documentation
documentation: documentation:
......
...@@ -16,6 +16,9 @@ test: ...@@ -16,6 +16,9 @@ test:
test-ci: test-ci:
dune build -j2 @tests/ci dune build -j2 @tests/ci
test-lib:
dune runtest -j2 lib
promote: promote:
dune promote --root=. dune promote --root=.
......
...@@ -94,7 +94,10 @@ ...@@ -94,7 +94,10 @@
dontBuild = true; dontBuild = true;
dontInstall = true; dontInstall = true;
doCheck = true; doCheck = true;
checkPhase = "make test-ci"; checkPhase = ''
make test-ci
make test-lib
'';
buildInputs = oldAttrs.buildInputs ++ buildInputs = oldAttrs.buildInputs ++
[ pkgs.python3Packages.onnx ]; [ pkgs.python3Packages.onnx ];
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment