Removed automatic tests running

This commit is contained in:
Dm1tr1y147 2020-07-24 11:46:11 +05:00
parent 888e494c2a
commit 73aa9bf2aa
3 changed files with 2 additions and 57 deletions

View File

@ -1,26 +0,0 @@
language: python
sudo: false
env:
- LUA="lua=5.1"
- LUA="lua=5.2"
- LUA="lua=5.3"
before_install:
- pip install hererocks
- hererocks lua_install -r^ --$LUA
- export PATH=$PATH:$PWD/lua_install/bin
install:
- luarocks make
- luarocks install luacheck
- luarocks install busted
- luarocks install luacov
- luarocks install luacov-coveralls
script:
- luacheck --std max+busted src spec
- busted --verbose --coverage
after_success:
- luacov-coveralls -e $TRAVIS_BUILD_DIR/lua_install

View File

@ -1,29 +0,0 @@
package = "md-offliner"
version = "1.0-1"
source = {
url = "git://github.com/Dm1tr1y147/md_offliner",
tag = "v1.0",
}
description = {
summary = "Markdown article online assets downloader.",
detailed = [[
This tool helps to download all images in markdown document and put them into one folder with changed paths.
]],
license = "MIT/X11"
}
dependencies = {
"lua >= 5.1, < 5.4",
"luasocket >= 2.0.2-6",
"luasec >= 0.9-1",
}
build = {
type = "builtin",
modules = {
main = "src/main.lua",
["src.arg_proc"] = "src/arg_proc.lua",
["src.netw_ops"] = "src/netw_ops.lua",
["src.process_md"] = "src/process_md.lua",
["lib.argparse"] = "lib/argparse.lua"
},
copy_directories = { "spec" }
}

View File

@ -59,8 +59,8 @@ describe("process_md", function()
local content = f:read('a')
local header
content, header = ProcessMD.get_header(content, assets_dir .. 'tmp_dir/some file.md', true)
local header, _
_, header = ProcessMD.get_header(content, assets_dir .. 'tmp_dir/some file.md', true)
f:close()
assert.equal('Header_:D', header)