aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| | | * Tests: remove optional OS argument in hash_environmentPeter Melnichenko2016-07-081-14/+8
| | | |
| | | * Tests: fix config creation error handlingPeter Melnichenko2016-07-081-2/+1
| | | |
| | | * Tests: reformat help messagePeter Melnichenko2016-07-081-15/+21
| | | |
| | | * Tests: refactor config creationPeter Melnichenko2016-07-081-64/+81
| | | |
| | | * Tests: fix luabitop installation conditionPeter Melnichenko2016-07-081-1/+1
| | | |
| | | * Remove some more unused stuff and globals from testsPeter Melnichenko2016-07-0812-21/+17
| | | |
| | | * Make env vars, paths and run commands available on test env loadPeter Melnichenko2016-07-0825-92/+82
| | | |
| | | * Tests: disable insulation and use describe() instead of expose()Peter Melnichenko2016-07-0825-25/+26
| | | |
| | | * Test suite: use test/test_environment as busted helperPeter Melnichenko2016-07-082-29/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When parsing test options, instead of directly looking for '-Xhelper' in arguments and splitting the next arguments on commas add .busted config to set test/test_environment as busted helper. Then busted will do the splitting on its own and set global arg to split options.
| | | * Remove all the unused imports in test suitePeter Melnichenko2016-07-0823-49/+13
| | | |
| | | * Tests: infer Lua/LuaJIT versionPeter Melnichenko2016-07-082-31/+27
| | | |
| | | * .travis.yml: don't use virtualenvPeter Melnichenko2016-07-081-7/+3
| | |/ | | | | | | | | | | | | | | | | | | Install python 2 and avoid using virtualenv, pip on osx works fine without it. Also remove unnecessary path prefix and add newline at the end.
| | * New test-suite for LuaRocks (#581)robooo2016-07-0730-1143/+2281
| | | | | | | | | | | | | | | | | | | | | | | | First version of new test-suite, using Busted framework based on Google Summer of Code project: https://summerofcode.withgoogle.com/projects/#5695811874717696 * Rewritten from Bash to Lua * Tests now check if they did what they were supposed to, beyond only checking success or failure of the `luarocks` command * Support for black-box (launching `luarocks` as an external command) and white-box (testing functions in modules directly) testing
| | * Fix implicit number-to-string coversion in luarocks.helpPeter Melnichenko2016-07-051-1/+1
| | |
| | * Fix field name building in type_check.luaPeter Melnichenko2016-07-051-2/+5
| | | | | | | | | | | | Use 'parent[field]' notation for non-string fields.
| * | Fix crash when given a remote rockspec.Hisham2016-07-111-5/+9
| |/
* | Merge pull request #577 from keplerproject/core-modulesHisham Muhammad2016-07-1563-1539/+1440
|\ \ | | | | | | Core modules reorganization.
| * | Core modules reorganization.Hisham2016-06-3063-1539/+1440
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Isolate all modules used by luarocks.loader in a luarocks.core.* namespace. Core modules can only require other core modules, and they only use require() at the top-level chunk. In other words, after luarocks.loader is setup, package.path can be altered at will and it should not affect the ability of luarocks.loader to run, and the luarocks.loader modules should not interfere with modules loaded later. This was motivated by @robooo's GSoC work on porting the LuaRocks test suite to Lua using Busted. Busted itself runs using luarocks.loader, and we need to ensure that the modules loaded by the tests do not conflict with the ones used by luarocks.loader. A circular dependency between luarocks.manif and luarocks.search was removed by creating a separate luarocks.manif.writer module. Also, luarocks-admin commands were moved to a luarocks.admin.* namespace.
* | Merge branch 'master' into luarocks-3Hisham2016-06-294-6/+5
|\|
| * Merge pull request #574 from mpeterv/unpack-archive-errHisham Muhammad2016-06-223-5/+4
| |\ | | | | | | Improve error on archive unpack error
| | * Mention failed action on invalid archive extensionPeter Melnichenko2016-06-222-4/+2
| | | | | | | | | | | | | | | | | | Return `Couldn't extract archive <file>: unrecognized filename extension` instead of `Unrecognized extension <ext>`, so that it's clear that the file is being interpreted as an archive.
| | * Handle unpack_archive errorsPeter Melnichenko2016-06-221-1/+2
| |/ | | | | | | | | | | In particular, when installing a rock, fail with a message related to extraction error or unrecognized archive extension instead of 'Directory <name> not found inside archive <name>.<ext>'.
| * Fix an accidental global in luarocks.buildPeter Melnichenko2016-06-131-1/+1
| |
* | Remove now unused function deps.deps_mode_to_flagPeter Melnichenko2016-06-131-4/+0
| |
* | Remove 'run' interface for commandsPeter Melnichenko2016-06-1325-32/+0
| |
* | Merge branch 'master' into luarocks-3Peter Melnichenko2016-06-132-2/+2
|\|
| * Don't use 'run' interface in luarocks.buildPeter Melnichenko2016-06-131-1/+1
| | | | | | | | | | | | Use local 'do_build' function as function for search.act_on_src_or_rockspec instead. This also gets rid of double permission check and double removal of other versions.
| * Use install.command instead of install.run in luarocks.depsPeter Melnichenko2016-06-131-1/+1
| |
* | Merge branch 'master' into luarocks-3Peter Melnichenko2016-06-1364-763/+642
|\|
| * Merge pull request #567 from mpeterv/cli-refactorHisham Muhammad2016-06-1226-123/+64
| |\ | | | | | | Refactor cli to avoid double args parsing
| | * Get rid of util.forward_flagsPeter Melnichenko2016-06-032-34/+2
| | | | | | | | | | | | Use 'commands' functions directly.
| | * Refactor CLI to avoid double args parsingPeter Melnichenko2016-06-0326-91/+64
| | | | | | | | | | | | | | | | | | | | | | | | New command module interface: instead of 'run' function they must have 'command' function that accepts flags table and other arguments. For compatibility a new util function is called on all command modules: it adds 'run' function that parses command-line args before passing them to 'command'.
| * | Merge pull request #548 from xpol/msvc-cross-compilingPeter Melnichenko2016-06-111-9/+22
| |\ \ | | | | | | | | Add cross compiling support for MSVC.
| | * | Fallback to vcvarsall.bat if compiler specific bat not found.Xpol Wan2016-05-231-0/+8
| | | |
| | * | Add cross compiling support for MSVC.Xpol Wan2016-05-031-11/+16
| | | | | | | | | | | | | | | | This is needed, when native compiler is not installed but cross compiler does.
| * | | Use utils.see_help() consistently for all commandsPeter Melnichenko2016-06-092-2/+2
| | | |
| * | | Check external_dependencies before dependencies.Hisham2016-06-071-6/+8
| | | | | | | | | | | | | | | | | | | | This allows us to fail quicker before installing a bunch of other rocks.
| * | | Merge branch 'master' of https://github.com/keplerproject/luarocksHisham2016-06-0753-118/+122
| |\ \ \ | | | |/ | | |/|
| | * | Remove commented module() callsPeter Melnichenko2016-05-3151-51/+0
| | | |
| | * | Remove unused imports in luarocks.makePeter Melnichenko2016-05-311-2/+0
| | | |
| | * | Merge pull request #558 from mpeterv/persist-arrays-with-newlinesHisham Muhammad2016-05-301-1/+1
| | |\ \ | | | | | | | | | | Don't put array items on the same line when persisting
| | | * | luarocks.persist: put pairs with number values on one linePeter Melnichenko2016-05-301-1/+1
| | |/ / | | | | | | | | | | | | | | | | Instead of pairs with number keys. Keeps parsed version representation compact but puts items in regular arrays each on its own line.
| | * | Merge pull request #562 from mpeterv/write-rockspec-infer-scm-urlHisham Muhammad2016-05-271-4/+42
| | |\ \ | | | | | | | | | | Write rockspec infer scm url
| | | * | write-rockspec: improve homepage detectionPeter Melnichenko2016-05-231-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Perform detection later to take into account URL inferred from local scm repo. * Support more protocols instead of just 'git://'. * Support Bitbucket and Gitlab in addition to Github. * Strip trailing '.git'.
| | | * | write-rockspec: infer git and hg urls from local reposPeter Melnichenko2016-05-231-0/+29
| | | | |
| | * | | Merge pull request #563 from mpeterv/new-version-no-argHisham Muhammad2016-05-274-60/+79
| | |\ \ \ | | | | | | | | | | | | luarocks new-version: make rockspec argument optional
| | | * | | luarocks new-version: make rockspec arg optionalPeter Melnichenko2016-05-252-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | Infer it same way `luarocks make` does.
| | | * | | luarocks make: move rockspec picking into an util functionPeter Melnichenko2016-05-252-55/+69
| | |/ / /
| * / / / Ensure entries are readable.Hisham2016-05-252-3/+3
| |/ / /
| * | | Merge branch 'master' of https://github.com/keplerproject/luarocksHisham2016-05-2516-428/+335
| |\| |