Commit cf95e8f6 authored by Matthieu C.'s avatar Matthieu C. Committed by teto
Browse files

lua51Packages.rocks-nvim: enable test

in the end, it enables only 2 tests so less sexy than I anticipated but
we can hope it improves. The nix builds helps selecting tests that
require network access.
parent 56871d99
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -997,6 +997,27 @@ in
    '';
  };

  rocks-nvim = prev.rocks-nvim.overrideAttrs (oa: {

    nativeCheckInputs = [
      final.nlua
      final.busted
      writableTmpDirAsHomeHook
    ];

    doCheck = lua.luaversion == "5.1";

    nvimSkipModules = [
      "bootstrap" # tries to install luarocks from network
    ];

    checkPhase = ''
      runHook preCheck
      busted --run=offline
      runHook postCheck
    '';
  });

  rtp-nvim = prev.rtp-nvim.overrideAttrs {
    doCheck = lua.luaversion == "5.1";
    nativeCheckInputs = [