1
1
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:
Nicolas Mattia 2020-01-20 17:55:55 +01:00
parent d29a2b6901
commit 0b2d1dc06e
3 changed files with 4 additions and 5 deletions

View File

@ -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;

View File

@ -57,7 +57,9 @@ executables:
source-dirs: app
dependencies:
- niv
niv-test:
tests:
unit:
main: NivTest.main
source-dirs: app
dependencies:

View File

@ -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