From 3f08199bc9b3294eacdbbc9091ffe257b0120365 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Mon, 20 Mar 2023 09:40:14 +0100 Subject: [PATCH] release 2.1.2 --- CONTRIBUTING.md | 8 ++ README.md | 4 +- action.yml | 2 +- busted-scm-1.rockspec | 6 +- busted/core.lua | 2 +- rockspecs/busted-2.1.2-1.rockspec | 117 ++++++++++++++++++++++++++++++ 6 files changed, 134 insertions(+), 5 deletions(-) create mode 100644 rockspecs/busted-2.1.2-1.rockspec diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d791bac1..590bfbb0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -49,3 +49,11 @@ Please make separate branches for unrelated changes! Busted is MIT licensed. See details in the LICENSE file. This is a very permissive scheme, GPL-compatible but without many of the restrictions of GPL. + +## New releases + +1. Create a new rockspec in the `./rockspecs` folder, copied from the `scm` in the repo root folder. +2. Update the line `busted.version = 'x.y.z'` in file `./busted/core.lua`. +3. in `./action.yml` update the version number in the `image` tag. +4. commit the changes, and tag it in `vX.Y.Z` format +5. push the commit and the tags diff --git a/README.md b/README.md index 35bda0a2..aa14f26b 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ busted [![Join the chat at https://gitter.im/lunarmodules/busted](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/lunarmodules/busted?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -[![Busted](https://img.shields.io/github/workflow/status/lunarmodules/busted/Busted?label=Busted&logo=Lua)](https://github.com/lunarmodules/busted/actions?workflow=Busted) -[![Luacheck](https://img.shields.io/github/workflow/status/lunarmodules/busted/Luacheck?label=Luacheck&logo=Lua)](https://github.com/lunarmodules/busted/actions?workflow=Luacheck) +[![Busted](https://img.shields.io/github/actions/workflow/status/lunarmodules/busted/busted.yml?label=Busted&logo=Lua)](https://github.com/lunarmodules/busted/actions?workflow=Busted) +[![Luacheck](https://img.shields.io/github/actions/workflow/status/lunarmodules/busted/luacheck.yml?label=Luacheck&logo=Lua)](https://github.com/lunarmodules/busted/actions?workflow=Luacheck) [![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/lunarmodules/busted?label=Tag&logo=GitHub)](https://github.com/lunarmodules/busted/releases) [![Luarocks](https://img.shields.io/luarocks/v/lunarmodules/busted?label=Luarocks&logo=Lua)](https://luarocks.org/modules/lunarmodules/busted) diff --git a/action.yml b/action.yml index 03d535a5..24d5e0c8 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,7 @@ inputs: default: "." runs: using: docker - image: docker://ghcr.io/lunarmodules/busted:v2.1.1 + image: docker://ghcr.io/lunarmodules/busted:v2.1.2 entrypoint: sh args: - -c diff --git a/busted-scm-1.rockspec b/busted-scm-1.rockspec index d40b3291..e4d708a7 100644 --- a/busted-scm-1.rockspec +++ b/busted-scm-1.rockspec @@ -12,7 +12,11 @@ source = { url = "git+https://github.com/" .. github_account_name .. "/" .. github_repo_name .. ".git" } -if package_version == "scm" then source.branch = "master" else source.tag = "v" .. package_version end +if package_version == "scm" then + source.branch = "master" +else + source.tag = "v" .. package_version +end description = { summary = 'Elegant Lua unit testing', diff --git a/busted/core.lua b/busted/core.lua index e2906119..a00912db 100644 --- a/busted/core.lua +++ b/busted/core.lua @@ -45,7 +45,7 @@ return function() local mediator = require 'mediator'() local busted = {} - busted.version = '2.1.1' + busted.version = '2.1.2' local root = require 'busted.context'() busted.context = root.ref() diff --git a/rockspecs/busted-2.1.2-1.rockspec b/rockspecs/busted-2.1.2-1.rockspec new file mode 100644 index 00000000..a5136476 --- /dev/null +++ b/rockspecs/busted-2.1.2-1.rockspec @@ -0,0 +1,117 @@ +local package_name = "busted" +local package_version = "2.1.2" +local rockspec_revision = "1" +local github_account_name = "lunarmodules" +local github_repo_name = package_name + +rockspec_format = "3.0" +package = package_name +version = package_version .. "-" .. rockspec_revision + +source = { + url = "git+https://github.com/" .. github_account_name .. "/" .. github_repo_name .. ".git" +} + +if package_version == "scm" then + source.branch = "master" +else + source.tag = "v" .. package_version +end + +description = { + summary = 'Elegant Lua unit testing', + detailed = [[ + An elegant, extensible, testing framework. + Ships with a large amount of useful asserts, + plus the ability to write your own. Output + in pretty or plain terminal format, JSON, + or TAP for CI integration. Great for TDD + and unit, integration, and functional tests. + ]], + homepage = "https://lunarmodules.github.io/busted/", + license = 'MIT ' +} + +dependencies = { + 'lua >= 5.1', + 'lua_cliargs = 3.0', + 'luafilesystem >= 1.5.0', + 'luasystem >= 0.2.0', + 'dkjson >= 2.1.0', + 'say >= 1.4-1', + 'luassert >= 1.9.0-1', + 'lua-term >= 0.1', + 'penlight >= 1.3.2', + 'mediator_lua >= 1.1.1', +} + +test_dependencies = { + "busted", +} + +test = { + type = "busted", +} + +build = { + type = 'builtin', + modules = { + ['busted.core'] = 'busted/core.lua', + ['busted.context'] = 'busted/context.lua', + ['busted.environment'] = 'busted/environment.lua', + ['busted.compatibility'] = 'busted/compatibility.lua', + ['busted.options'] = 'busted/options.lua', + ['busted.done'] = 'busted/done.lua', + ['busted.runner'] = 'busted/runner.lua', + ['busted.status'] = 'busted/status.lua', + ['busted.utils'] = 'busted/utils.lua', + ['busted.block'] = 'busted/block.lua', + ['busted.execute'] = 'busted/execute.lua', + ['busted.init'] = 'busted/init.lua', + ['busted.luajit'] = 'busted/luajit.lua', + ['busted.fixtures'] = 'busted/fixtures.lua', + + ['busted.modules.configuration_loader'] = 'busted/modules/configuration_loader.lua', + ['busted.modules.luacov'] = 'busted/modules/luacov.lua', + ['busted.modules.standalone_loader'] = 'busted/modules/standalone_loader.lua', + ['busted.modules.test_file_loader'] = 'busted/modules/test_file_loader.lua', + ['busted.modules.output_handler_loader'] = 'busted/modules/output_handler_loader.lua', + ['busted.modules.helper_loader'] = 'busted/modules/helper_loader.lua', + ['busted.modules.filter_loader'] = 'busted/modules/filter_loader.lua', + ['busted.modules.cli'] = 'busted/modules/cli.lua', + + ['busted.modules.files.lua'] = 'busted/modules/files/lua.lua', + ['busted.modules.files.moonscript'] = 'busted/modules/files/moonscript.lua', + ['busted.modules.files.terra'] = 'busted/modules/files/terra.lua', + + ['busted.outputHandlers.base'] = 'busted/outputHandlers/base.lua', + ['busted.outputHandlers.utfTerminal'] = 'busted/outputHandlers/utfTerminal.lua', + ['busted.outputHandlers.plainTerminal'] = 'busted/outputHandlers/plainTerminal.lua', + ['busted.outputHandlers.TAP'] = 'busted/outputHandlers/TAP.lua', + ['busted.outputHandlers.json'] = 'busted/outputHandlers/json.lua', + ['busted.outputHandlers.junit'] = 'busted/outputHandlers/junit.lua', + ['busted.outputHandlers.gtest'] = 'busted/outputHandlers/gtest.lua', + ['busted.outputHandlers.sound'] = 'busted/outputHandlers/sound.lua', + + ['busted.languages.ar'] = 'busted/languages/ar.lua', + ['busted.languages.de'] = 'busted/languages/de.lua', + ['busted.languages.en'] = 'busted/languages/en.lua', + ['busted.languages.es'] = 'busted/languages/es.lua', + ['busted.languages.fr'] = 'busted/languages/fr.lua', + ['busted.languages.is'] = 'busted/languages/is.lua', + ['busted.languages.it'] = 'busted/languages/it.lua', + ['busted.languages.ja'] = 'busted/languages/ja.lua', + ['busted.languages.nl'] = 'busted/languages/nl.lua', + ['busted.languages.pt-BR'] = 'busted/languages/pt-BR.lua', + ['busted.languages.ro'] = 'busted/languages/ro.lua', + ['busted.languages.ru'] = 'busted/languages/ru.lua', + ['busted.languages.th'] = 'busted/languages/th.lua', + ['busted.languages.ua'] = 'busted/languages/ua.lua', + ['busted.languages.zh'] = 'busted/languages/zh.lua', + }, + install = { + bin = { + ['busted'] = 'bin/busted' + } + } +}