-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
19 lines (17 loc) · 761 Bytes
/
makefile
File metadata and controls
19 lines (17 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SHELL := /bin/bash
BUSTED_VERSION := 2.1.2-3
.PHONY: test
test:
@echo "Initializing LuaRocks..."
@luarocks init
@echo "Installing Busted..."
@luarocks install busted $(BUSTED_VERSION)
@echo "Configuring Lua version..."
@luarocks config --scope project lua_version 5.1
@echo "Running tests..."
@nvim -u NONE \
-c "lua package.path='lua_modules/share/lua/5.1/?.lua;lua_modules/share/lua/5.1/?/init.lua;'..package.path;package.cpath='lua_modules/lib/lua/5.1/?.so;'..package.cpath;local k,l,_=pcall(require,'luarocks.loader') _=k and l.add_context('busted','$(BUSTED_VERSION)')" \
-l "lua_modules/lib/luarocks/rocks-5.1/busted/$(BUSTED_VERSION)/bin/busted" tests/data/test.lua
.PHONY: launch
launch:
nvim --noplugin -u spec/init.lua spec/init.lua