From ca15782699bb327c22b22584c30d678734e0a739 Mon Sep 17 00:00:00 2001 From: mpeterv Date: Mon, 23 Nov 2015 20:35:43 +0300 Subject: [PATCH] Add test rock --- .travis.yml | 2 ++ hererocks-test-scm-1.rockspec | 26 ++++++++++++++++++++++++++ hererocks-test.lua | 1 + test.lua | 1 + 4 files changed, 30 insertions(+) create mode 100644 hererocks-test-scm-1.rockspec create mode 100644 hererocks-test.lua create mode 100644 test.lua diff --git a/.travis.yml b/.travis.yml index f73d377..8076f01 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,3 +22,5 @@ script: - export PATH=$PATH:$PWD/here/bin - lua -v - luarocks --version + - luarocks make + - hererocks-test diff --git a/hererocks-test-scm-1.rockspec b/hererocks-test-scm-1.rockspec new file mode 100644 index 0000000..752db7f --- /dev/null +++ b/hererocks-test-scm-1.rockspec @@ -0,0 +1,26 @@ +package = "hererocks-test" +version = "scm-1" +source = { + url = "git://github.com/mpeterv/hererocks" +} +description = { + summary = "A test rock for hererocks", + detailed = "A test rock for hererocks", + homepage = "https://github.com/mpeterv/hererocks", + license = "MIT " +} +dependencies = { + "lua >= 5.1, < 5.4" +} +build = { + type = "builtin", + modules = { + ["hererocks.test"] = "test.lua" + }, + install = { + bin = { + ["hererocks-test"] = "hererocks-test.lua" + } + }, + copy_directories = {} +} diff --git a/hererocks-test.lua b/hererocks-test.lua new file mode 100644 index 0000000..cdbcd45 --- /dev/null +++ b/hererocks-test.lua @@ -0,0 +1 @@ +require "hererocks.test" diff --git a/test.lua b/test.lua new file mode 100644 index 0000000..4b4cc96 --- /dev/null +++ b/test.lua @@ -0,0 +1 @@ +print("Lua version: " .. (_G.jit and _G.jit.version or _VERSION))