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-github = pkgs.callPackage ./tests/github { inherit niv; };
|
||||||
tests-git = pkgs.callPackage ./tests/git { 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" (
|
readme = pkgs.writeText "README.md" (
|
||||||
let
|
let
|
||||||
template = builtins.readFile ./README.tpl.md;
|
template = builtins.readFile ./README.tpl.md;
|
||||||
|
@ -57,7 +57,9 @@ executables:
|
|||||||
source-dirs: app
|
source-dirs: app
|
||||||
dependencies:
|
dependencies:
|
||||||
- niv
|
- niv
|
||||||
niv-test:
|
|
||||||
|
tests:
|
||||||
|
unit:
|
||||||
main: NivTest.main
|
main: NivTest.main
|
||||||
source-dirs: app
|
source-dirs: app
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -27,7 +27,7 @@ if [[ ! $OSTYPE =~ darwin ]]; then
|
|||||||
else
|
else
|
||||||
echo "Testing on darwin"
|
echo "Testing on darwin"
|
||||||
echo "Not enabling sandbox, not running integration"
|
echo "Not enabling sandbox, not running integration"
|
||||||
targets+=("-A" "niv-test")
|
targets+=("-A" "niv")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build and create a root
|
# Build and create a root
|
||||||
|
Loading…
Reference in New Issue
Block a user