From 73aa9bf2aa50d09367681db09e27a0e0f21f07ba Mon Sep 17 00:00:00 2001 From: Dm1tr1y147 Date: Fri, 24 Jul 2020 11:46:11 +0500 Subject: [PATCH] Removed automatic tests running --- .travis.yml | 26 -------------------------- md-offliner-1.0-1.rockspec | 29 ----------------------------- spec/process_md_spec.lua | 4 ++-- 3 files changed, 2 insertions(+), 57 deletions(-) delete mode 100644 .travis.yml delete mode 100644 md-offliner-1.0-1.rockspec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b28902d..0000000 --- a/.travis.yml +++ /dev/null @@ -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 diff --git a/md-offliner-1.0-1.rockspec b/md-offliner-1.0-1.rockspec deleted file mode 100644 index c01a965..0000000 --- a/md-offliner-1.0-1.rockspec +++ /dev/null @@ -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" } -} \ No newline at end of file diff --git a/spec/process_md_spec.lua b/spec/process_md_spec.lua index bab8eb1..0e1b2ad 100644 --- a/spec/process_md_spec.lua +++ b/spec/process_md_spec.lua @@ -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)