From 48172ccd7ce456872cf2de257301fb185d680909 Mon Sep 17 00:00:00 2001 From: leaf corcoran Date: Sun, 27 Dec 2015 23:14:59 -0800 Subject: [PATCH] experiment with lulpeg --- .travis.yml | 3 ++- spec/setup_lpeg.moon | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 spec/setup_lpeg.moon diff --git a/.travis.yml b/.travis.yml index 48d84c8c..c2ced157 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ env: - LUA=lua5.1 - LUA=lua5.2 - LUA=lua5.3 + - LUA=lua5.3 LPEG=lulpeg - LUA=luajit2.1 # current head of 2.1 branch before_install: @@ -19,4 +20,4 @@ install: - luarocks install loadkit - luarocks make -script: busted +script: busted --helper=spec/setup_lpeg.moon diff --git a/spec/setup_lpeg.moon b/spec/setup_lpeg.moon new file mode 100644 index 00000000..dde9aa82 --- /dev/null +++ b/spec/setup_lpeg.moon @@ -0,0 +1,7 @@ + +lpeg = os.getenv "LPEG" + +if lpeg == "lulpeg" + print "Using LuLPeg" + os.execute "curl -O 'https://raw.githubusercontent.com/pygy/LuLPeg/master/lulpeg.lua'" + package.loaded.lpeg = require("lulpeg")