mirror of
https://github.com/nmattia/niv.git
synced 2024-11-07 22:36:53 +03:00
Remove the niv-test executable
This moves the tests into a `tests` section of the `package.yaml`. Otherwise, the `niv-test` is shipped with the actual executable.
This commit is contained in:
parent
d29a2b6901
commit
0b2d1dc06e
@ -196,9 +196,6 @@ rec
|
||||
tests-github = pkgs.callPackage ./tests/github { inherit niv; };
|
||||
tests-git = pkgs.callPackage ./tests/git { inherit niv; };
|
||||
|
||||
niv-test = pkgs.runCommand "niv-test" { buildInputs = [ niv ]; }
|
||||
"niv-test && touch $out";
|
||||
|
||||
readme = pkgs.writeText "README.md" (
|
||||
let
|
||||
template = builtins.readFile ./README.tpl.md;
|
||||
|
@ -57,7 +57,9 @@ executables:
|
||||
source-dirs: app
|
||||
dependencies:
|
||||
- niv
|
||||
niv-test:
|
||||
|
||||
tests:
|
||||
unit:
|
||||
main: NivTest.main
|
||||
source-dirs: app
|
||||
dependencies:
|
||||
|
@ -27,7 +27,7 @@ if [[ ! $OSTYPE =~ darwin ]]; then
|
||||
else
|
||||
echo "Testing on darwin"
|
||||
echo "Not enabling sandbox, not running integration"
|
||||
targets+=("-A" "niv-test")
|
||||
targets+=("-A" "niv")
|
||||
fi
|
||||
|
||||
# Build and create a root
|
||||
|
Loading…
Reference in New Issue
Block a user