build: Target luacheck HEAD.

https://github.com/mpeterv/luacheck/pull/81#issuecomment-261099606

> If you really want to use bleeding-edge version you should get the
> rockspec from master branch, not a fixed commit ...
> The correct way to install from a specific commit is cloning that
> commit and running "luarocks make" from project directory. The reason
> is that running "install" or "build" on an scm rockspec fetches
> sources from master but uses build description from the rockspec
> itself, which may be outdated.
This commit is contained in:
Justin M. Keyes 2016-11-17 00:33:45 +01:00
parent 5e241b5f50
commit 44e6ee930f
25 changed files with 80 additions and 77 deletions

View File

@ -11,3 +11,6 @@ self = false
-- Rerun tests only if their modification time changed. -- Rerun tests only if their modification time changed.
cache = true cache = true
-- Ignore whitespace issues in converted Vim legacy tests.
files["functional/legacy"] = {ignore = { "611", "612", "613", "621" }}

View File

@ -144,7 +144,7 @@ if(USE_BUNDLED_BUSTED)
add_custom_command(OUTPUT ${HOSTDEPS_BIN_DIR}/luacheck add_custom_command(OUTPUT ${HOSTDEPS_BIN_DIR}/luacheck
COMMAND ${LUAROCKS_BINARY} COMMAND ${LUAROCKS_BINARY}
ARGS build https://raw.githubusercontent.com/mpeterv/luacheck/3929eaa3528be2a8a50c593d687c8625205a2033/luacheck-scm-1.rockspec ${LUAROCKS_BUILDARGS} ARGS build https://raw.githubusercontent.com/mpeterv/luacheck/master/luacheck-scm-1.rockspec ${LUAROCKS_BUILDARGS}
DEPENDS busted) DEPENDS busted)
add_custom_target(luacheck add_custom_target(luacheck
DEPENDS ${HOSTDEPS_BIN_DIR}/luacheck) DEPENDS ${HOSTDEPS_BIN_DIR}/luacheck)