-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add nix test + docgen infrastructure
- Loading branch information
Showing
11 changed files
with
86 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
return { | ||
_all = { | ||
coverage = false, | ||
lpath = "lua/?.lua;lua/?/init.lua", | ||
}, | ||
default = { | ||
verbose = true | ||
}, | ||
tests = { | ||
verbose = true | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Changelog | ||
|
||
## 1.0.0 | ||
|
||
- Initial version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
A sample command-line application with an entrypoint in `bin/`, library code | ||
in `lib/`, and example unit test in `test/`. | ||
# sample project | ||
|
||
A sample command-line application with an entry point | ||
in `bin/`, library code in `lib/`, | ||
and example unit test in `test/`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
vim:tw=78:ts=8:noet:ft=help:norl: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- NOTE: This rockspec is used for running busted tests only, | ||
-- not for publishing to LuaRocks.org | ||
|
||
local _MODREV, _SPECREV = 'scm', '-1' | ||
rockspec_format = '3.0' | ||
package = 'ferris.nvim' | ||
version = _MODREV .. _SPECREV | ||
|
||
dependencies = { | ||
'lua >= 5.1', | ||
} | ||
|
||
test_dependencies = { | ||
'lua >= 5.1', | ||
} | ||
|
||
source = { | ||
url = 'git://github.com/mrcjkb/' .. package, | ||
} | ||
|
||
build = { | ||
type = 'builtin', | ||
copy_directories = { | ||
'doc', | ||
'ftplugin' | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{pkgs, ...}: | ||
pkgs.writeShellApplication { | ||
name = "docgen"; | ||
runtimeInputs = with pkgs; [ | ||
lemmy-help | ||
]; | ||
text = '' | ||
mkdir -p doc | ||
lemmy-help lua/ferris/config/init.lua > doc/ferris.txt | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
describe("LSP client API", function() | ||
local FerrisConfig = require("ferris.config.internal") | ||
local Types = require("ferris.types.internal") | ||
local ra_bin = Types.evaluate(FerrisConfig.server.cmd)[1] | ||
if vim.fn.executable(ra_bin) ~= 0 then | ||
it("Can spin up rust-analyzer.", function() | ||
--- TODO: Figure out how to add tests for this | ||
print("TODO") | ||
end) | ||
end | ||
end) |